Update test to accept flags instead of a bool

This commit is contained in:
James Rouzier
2017-10-25 19:54:40 -04:00
parent 7c466e53f0
commit 2f1f4b19a0
5 changed files with 25 additions and 25 deletions

View File

@@ -104,9 +104,9 @@ protected:
void db_prepare();
void db_open();
void db_close();
void txn_begin(bool readonly);
void txn_begin(unsigned flags);
void txn_end(bool abort);
void txn_restart(bool abort, bool readonly);
void txn_restart(bool abort, unsigned flags);
void fetch_canary();
void update_canary(uint64_t increment);
void kick_progress(bool active) const;
@@ -130,8 +130,8 @@ protected:
generate_pair(serial, key, data, data_age);
}
bool mode_readonly() const {
return (config.params.mode_flags & MDBX_RDONLY) ? true : false;
unsigned mode_readonly() const {
return (config.params.mode_flags & MDBX_RDONLY) ? MDBX_RDONLY : 0;
}
public: