Downloads internal database state from the disk buffers to the local distributive.
CLI Example
Command syntax:
global_db flush
Example:
Command:
cellframe-node-cli global_db flush
Response:
command status: Commit data base and filesystem caches to disk completed.
JSON-RPC Example
JSON-RPC Request - GLOBAL_DB FLUSH
Downloads internal database state from the disk buffers to the local distributive.
Request Structure
JSON object:
{ "method": "global_db", "subcommand": ["flush"], "id": "1" }
Parameters:
”null”
Curl Example
Command:
curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d ' { "method": "global_db", "subcommand": ["flush"], "id": "1" }'
Response:
Link to original { "type": 2, "result": [ { "command status": "Commit data base and filesystem caches to disk completed.\n\n" } ] "errors": null, "id": 1 }