You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added "provdb_commit" main program that remotely requests the provDB to commit its database to disk at some regular frequency
provdb changes:
Added RPCs to register connection/disconnection of commit client
Added RPC that returns the status of connected clients
Setting db_commmit_freq cmdline option to 0 now disables the periodic commit called within provdb_admin
Modified launch script to disable the periodic commit inside provdb_admin and use provdb_commit instead. This appears to workaround the provdb hang
bool cmd_shutdown = false; //true if a client has requested that the server shut down
71
101
72
102
voidclient_stop_rpc(const tl::request& req) {
@@ -120,7 +150,7 @@ int main(int argc, char** argv) {
120
150
addOptionalCommandLineArg(parser, nshards, "Specify the number of database shards (default 1)");
121
151
addOptionalCommandLineArg(parser, nthreads, "Specify the number of RPC handler threads (default 1)");
122
152
addOptionalCommandLineArg(parser, db_type, "Specify the Sonata database type (default \"unqlite\")");
123
-
addOptionalCommandLineArg(parser, db_commit_freq, "Specify the frequency at which the database flushes to disk in ms (default 10000)");
153
+
addOptionalCommandLineArg(parser, db_commit_freq, "Specify the frequency at which the database flushes to disk in ms (default 10000). 0 disables the flush until the end.");
124
154
addOptionalCommandLineArg(parser, db_write_dir, "Specify the directory in which the database shards will be written (default \".\")");
0 commit comments