mdbx-test: add stochastic reverse mode to the append scenario.

Change-Id: If506aff63b6c517922ae621f7805b58c9282e946
This commit is contained in:
Leonid Yuriev
2021-03-27 16:47:08 +03:00
parent 83cd4f7d58
commit 19575e799f
3 changed files with 92 additions and 71 deletions

View File

@@ -239,6 +239,10 @@ bool maker::is_unordered() const {
: mapping.split);
}
void maker::seek2end(serial_t &serial) const {
serial = actor_params::serial_mask(mapping.width) - 1;
}
bool maker::increment(serial_t &serial, int delta) const {
if (serial > actor_params::serial_mask(mapping.width)) {
log_extra("keygen-increment: %" PRIu64 " > %" PRIu64 ", overflow", serial,