test: canary fetch/update for jitter testcase.

Change-Id: I8402328f880addb1170e8e778b64aa4f12d18718
This commit is contained in:
Leo Yuriev
2017-04-23 19:00:28 +03:00
parent ce9c4acea6
commit 32937ac63b
3 changed files with 50 additions and 4 deletions

View File

@@ -88,11 +88,17 @@ protected:
size_t nops_completed;
chrono::time start_timestamp;
struct {
mdbx_canary canary;
} last;
void db_prepare();
void db_open();
void db_close();
void txn_begin(bool readonly);
void txn_end(bool abort);
void fetch_canary();
void update_canary(uint64_t increment);
bool wait4start();
void report(size_t nops_done);
@@ -107,6 +113,7 @@ public:
testcase(const actor_config &config, const mdbx_pid_t pid)
: config(config), pid(pid), nops_completed(0) {
start_timestamp.reset();
memset(&last, 0, sizeof(last));
}
virtual bool setup();