diff options
author | George Hazan <ghazan@miranda.im> | 2020-01-07 22:56:32 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-01-07 22:56:39 +0300 |
commit | 7524acda0a8778572262429f27b359d7ee91fc90 (patch) | |
tree | 6443228a439b83c5bc6d15923a9ccd91fa4718e3 /libs/libmdbx/src/test/keygen.h | |
parent | 62c842df372abe0349f025ac4cbbc8426526ac8b (diff) |
libmdbx: update to 0.5.0
Diffstat (limited to 'libs/libmdbx/src/test/keygen.h')
-rw-r--r-- | libs/libmdbx/src/test/keygen.h | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/libs/libmdbx/src/test/keygen.h b/libs/libmdbx/src/test/keygen.h index d0299e1e7d..d25b88349f 100644 --- a/libs/libmdbx/src/test/keygen.h +++ b/libs/libmdbx/src/test/keygen.h @@ -1,4 +1,4 @@ -/* +/* * Copyright 2017-2019 Leonid Yuriev <leo@yuriev.ru> * and other libmdbx authors: please see AUTHORS file. * All rights reserved. @@ -93,7 +93,7 @@ struct result { //----------------------------------------------------------------------------- -struct buffer_deleter : public std::unary_function<void, result *> { +struct buffer_deleter /* : public std::unary_function<void, result *> */ { void operator()(result *buffer) const { free(buffer); } }; @@ -107,18 +107,25 @@ class maker { serial_t salt; struct essentials { - uint8_t minlen; - uint8_t flags; - uint16_t maxlen; + uint16_t minlen; + uint16_t flags; + uint32_t maxlen; } key_essentials, value_essentials; - static void mk(const serial_t serial, const essentials ¶ms, result &out); + static void mk_begin(const serial_t serial, const essentials ¶ms, + result &out); + static void mk_continue(const serial_t serial, const essentials ¶ms, + result &out); + static void mk(const serial_t serial, const essentials ¶ms, result &out) { + mk_begin(serial, params, out); + mk_continue(serial, params, out); + } public: maker() { memset(this, 0, sizeof(*this)); } void pair(serial_t serial, const buffer &key, buffer &value, - serial_t value_age); + serial_t value_age, const bool keylen_changeable); void setup(const config::actor_params_pod &actor, unsigned actor_id, unsigned thread_number); void make_ordered(); |