mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-06 23:14:12 +08:00
mdbx-test: fix clang/glibcxx incompatibility.
Change-Id: I59c4f486431126396dc59a84914d78e0eeff1f4c
This commit is contained in:
parent
0fb2e4e4cc
commit
21fba6577a
@ -82,11 +82,7 @@ void testcase_nested::push_txn() {
|
|||||||
int err = mdbx_txn_begin(db_guard.get(), txn_guard.get(), flags, &txn);
|
int err = mdbx_txn_begin(db_guard.get(), txn_guard.get(), flags, &txn);
|
||||||
if (unlikely(err != MDBX_SUCCESS))
|
if (unlikely(err != MDBX_SUCCESS))
|
||||||
failure_perror("mdbx_txn_begin(nested)", err);
|
failure_perror("mdbx_txn_begin(nested)", err);
|
||||||
#if __cplusplus >= 201703L
|
stack.emplace(scoped_txn_guard(txn), serial, fifo, speculum);
|
||||||
stack.emplace(txn, serial, fifo, speculum);
|
|
||||||
#else
|
|
||||||
stack.push(std::make_tuple(scoped_txn_guard(txn), serial, fifo, speculum));
|
|
||||||
#endif
|
|
||||||
std::swap(txn_guard, std::get<0>(stack.top()));
|
std::swap(txn_guard, std::get<0>(stack.top()));
|
||||||
log_verbose("begin level#%zu txn #%" PRIu64 ", flags 0x%x, serial %" PRIu64,
|
log_verbose("begin level#%zu txn #%" PRIu64 ", flags 0x%x, serial %" PRIu64,
|
||||||
stack.size(), mdbx_txn_id(txn), flags, serial);
|
stack.size(), mdbx_txn_id(txn), flags, serial);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user