mdbx-test: fix speculum_verify().

Change-Id: I5bdcf771dd5d6117230c964616b4f4ed81f084f7
This commit is contained in:
Leonid Yuriev 2019-11-21 14:25:27 +03:00
parent f008876a93
commit fa8b68af1f
2 changed files with 5 additions and 2 deletions

View File

@ -654,10 +654,13 @@ int testcase::remove(const keygen::buffer &akey, const keygen::buffer &adata) {
return mdbx_del(txn_guard.get(), dbi, &akey->value, &adata->value);
}
bool testcase::speculum_verify() const {
bool testcase::speculum_verify() {
if (!config.params.speculum)
return true;
if (!txn_guard)
txn_begin(true);
char dump_key[128], dump_value[128];
char dump_mkey[128], dump_mvalue[128];

View File

@ -153,7 +153,7 @@ protected:
} last;
SET speculum;
bool speculum_verify() const;
bool speculum_verify();
int insert(const keygen::buffer &akey, const keygen::buffer &adata,
unsigned flags);
int replace(const keygen::buffer &akey, const keygen::buffer &new_value,