mdbx: add db-copy testcase.

Change-Id: Ib554880ebbabcb5dfc55bdb3c71767d0fa1630fd
This commit is contained in:
Leonid Yuriev
2018-11-04 18:57:36 +03:00
parent 40e3f735ab
commit 24d42c1583
9 changed files with 81 additions and 30 deletions

View File

@@ -185,3 +185,14 @@ public:
: testcase(config, pid) {}
bool run();
};
class testcase_copy : public testcase {
const std::string copy_pathname;
void copy_db(const bool with_compaction);
public:
testcase_copy(const actor_config &config, const mdbx_pid_t pid)
: testcase(config, pid),
copy_pathname(config.params.pathname_db + "-copy") {}
bool run();
};