mdbx-test: add ttl testcase.

Change-Id: Ia5d164fde250e959226a53c63fcaf024ffe965a2
This commit is contained in:
Leonid Yuriev
2019-06-21 22:42:45 +03:00
parent eecec74e21
commit 9cf9d6eac2
11 changed files with 192 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
/*
/*
* Copyright 2017-2019 Leonid Yuriev <leo@yuriev.ru>
* and other libmdbx authors: please see AUTHORS file.
* All rights reserved.
@@ -176,7 +176,7 @@ bool maker::is_unordered() const {
return (mapping.mesh >= serial_minwith || mapping.rotate) != 0;
}
bool maker::increment(serial_t &serial, int delta) {
bool maker::increment(serial_t &serial, int delta) const {
if (serial > mask(mapping.width)) {
log_extra("keygen-increment: %" PRIu64 " > %" PRIu64 ", overflow", serial,
mask(mapping.width));