mirror of
https://github.com/isar/libmdbx.git
synced 2025-12-20 06:22:21 +08:00
mdbx-test: engage mdbx_env_set_syncperiod() & mdbx_env_set_syncbytes().
Related to https://github.com/erthink/libmdbx/issues/248.
This commit is contained in:
committed by
Леонид Юрьев (Leonid Yuriev)
parent
f355f247c3
commit
3fdd810653
@@ -164,6 +164,14 @@ void testcase::db_open() {
|
||||
if (unlikely(rc != MDBX_SUCCESS))
|
||||
failure_perror("mdbx_env_open()", rc);
|
||||
|
||||
rc = mdbx_env_set_syncperiod(db_guard.get(), unsigned(0.042 * 65536));
|
||||
if (unlikely(rc != MDBX_SUCCESS) && rc != MDBX_BUSY)
|
||||
failure_perror("mdbx_env_set_syncperiod()", rc);
|
||||
|
||||
rc = mdbx_env_set_syncbytes(db_guard.get(), INT_MAX / 421);
|
||||
if (unlikely(rc != MDBX_SUCCESS) && rc != MDBX_BUSY)
|
||||
failure_perror("mdbx_env_set_syncbytes()", rc);
|
||||
|
||||
log_trace("<< db_open");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user