mirror of
https://github.com/isar/libmdbx.git
synced 2025-12-18 17:52:22 +08:00
Update test to accept flags instead of a bool
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user