mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-19 19:39:26 +08:00
mdbx-test: унификация PRNG и изменение опции командной строки на --prng-seed
.
This commit is contained in:
@@ -41,8 +41,9 @@ testcase *registry::create_actor(const actor_config &config,
|
||||
}
|
||||
|
||||
bool registry::review_actor_params(const actor_testcase id,
|
||||
actor_params ¶ms) {
|
||||
return instance()->id2record.at(id)->review_params(params);
|
||||
actor_params ¶ms,
|
||||
const unsigned space_id) {
|
||||
return instance()->id2record.at(id)->review_params(params, space_id);
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
@@ -78,13 +79,13 @@ void configure_actor(unsigned &last_space_id, const actor_testcase testcase,
|
||||
failure("The '%s' is unexpected for space-id\n", end);
|
||||
}
|
||||
|
||||
if (!registry::review_actor_params(testcase, params))
|
||||
failure("Actor config-review failed for space-id %lu\n", space_id);
|
||||
|
||||
if (space_id > ACTOR_ID_MAX)
|
||||
failure("Invalid space-id %lu\n", space_id);
|
||||
last_space_id = unsigned(space_id);
|
||||
|
||||
if (!registry::review_actor_params(testcase, params, unsigned(space_id)))
|
||||
failure("Actor config-review failed for space-id %lu\n", space_id);
|
||||
|
||||
last_space_id = unsigned(space_id);
|
||||
log_trace("configure_actor: space %lu for %s", space_id,
|
||||
testcase2str(testcase));
|
||||
global::actors.emplace_back(
|
||||
|
Reference in New Issue
Block a user