mdbx-test: fix MSVC warnings (minor).

Change-Id: I9c5987bfe6b5df8885a71601ab5f10cc57a7e45e
This commit is contained in:
Leonid Yuriev 2018-09-17 16:21:09 +03:00
parent c287f88dbd
commit c6dccdc91a
2 changed files with 7 additions and 7 deletions

View File

@ -410,13 +410,13 @@ void testcase::db_table_close(MDBX_dbi handle) {
log_trace("<< testcase::db_table_close");
}
void testcase::checkdata(const char *step, MDBX_dbi handle, MDBX_val key,
MDBX_val expect) {
MDBX_val data = expect;
int rc = mdbx_get2(txn_guard.get(), handle, &key, &data);
void testcase::checkdata(const char *step, MDBX_dbi handle, MDBX_val key2check,
MDBX_val expected_valued) {
MDBX_val actual_value = expected_valued;
int rc = mdbx_get2(txn_guard.get(), handle, &key2check, &actual_value);
if (unlikely(rc != MDBX_SUCCESS))
failure_perror(step, rc);
if (!is_samedata(&data, &expect))
if (!is_samedata(&actual_value, &expected_valued))
failure("%s data mismatch", step);
}

View File

@ -112,8 +112,8 @@ protected:
void fetch_canary();
void update_canary(uint64_t increment);
void kick_progress(bool active) const;
void checkdata(const char *step, MDBX_dbi handle, MDBX_val key,
MDBX_val expect);
void checkdata(const char *step, MDBX_dbi handle, MDBX_val key2check,
MDBX_val expected_valued);
MDBX_dbi db_table_open(bool create);
void db_table_drop(MDBX_dbi handle);