Skip to content
Snippets Groups Projects
Commit 3495d153 authored by Eelco Dolstra's avatar Eelco Dolstra
Browse files

* Periodically checkpoint the log.

parent 698e880c
No related branches found
No related tags found
No related merge requests found
......@@ -261,7 +261,9 @@ void Database::close()
delete db;
}
// env->txn_checkpoint(0, 0, 0);
/* Do a checkpoint every 128 kilobytes, or every 5 minutes. */
env->txn_checkpoint(128, 5, 0);
env->close(0);
} catch (DbException e) { rethrow(e); }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment