Set the maximum event log size to forty gigabytes.
@@ -41,9 +41,10 @@ MDB_env* u3_lmdb_init(const char* log_path)
return 0;
}
- // TODO: Start with a gigabyte for the event log.
+ // TODO: Start with forty gigabytes for the maximum event log size. We'll
+ // need to do something more sophisticated for real in the long term, though.
//
- ret_w = mdb_env_set_mapsize(env, 1024 * 1024 * 1024);
+ ret_w = mdb_env_set_mapsize(env, 40 * 1024 * 1024 * 1024);
if (ret_w != 0) {
u3l_log("lmdb: failed to set database size: %s\n", mdb_strerror(ret_w));
return 0;
