mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-23 09:04:26 +08:00
mdbx: move key generator linearization into actor::review_params()
.
Change-Id: I35492f64b6b5eae9702d26f3e0ba9df31f57a4af
This commit is contained in:
@@ -283,6 +283,15 @@ struct actor_params_pod {
|
||||
bool ignore_dbfull{false};
|
||||
bool speculum{false};
|
||||
bool random_writemap{true};
|
||||
|
||||
uint64_t serial_base() const {
|
||||
// FIXME: TODO
|
||||
return 0;
|
||||
}
|
||||
static MDBX_PURE_FUNCTION uint64_t serial_mask(unsigned bits) {
|
||||
assert(bits > 0 && bits <= 64);
|
||||
return (~(uint64_t)0u) >> (64 - bits);
|
||||
}
|
||||
};
|
||||
|
||||
struct actor_config_pod {
|
||||
@@ -312,6 +321,7 @@ struct actor_params : public config::actor_params_pod {
|
||||
actor_params() = default;
|
||||
|
||||
void set_defaults(const std::string &tmpdir);
|
||||
bool make_keygen_linear();
|
||||
unsigned mdbx_keylen_min() const;
|
||||
unsigned mdbx_keylen_max() const;
|
||||
unsigned mdbx_datalen_min() const;
|
||||
|
Reference in New Issue
Block a user