mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 18:14:12 +08:00
mdbx-test: fix nops_completed type.
Change-Id: I9b9930bc26d4301d0da0fdf59bc70befc37e2f6a
This commit is contained in:
parent
4da4ab3650
commit
2c8f115400
@ -239,7 +239,7 @@ bool testcase_nested::run() {
|
|||||||
const unsigned window_width =
|
const unsigned window_width =
|
||||||
(!should_continue() || flipcoin_x4()) ? 0 : edge2window(salt);
|
(!should_continue() || flipcoin_x4()) ? 0 : edge2window(salt);
|
||||||
const unsigned head_count = edge2count(salt);
|
const unsigned head_count = edge2count(salt);
|
||||||
log_debug("nested: step #%zu (serial %" PRIu64
|
log_debug("nested: step #%" PRIu64 " (serial %" PRIu64
|
||||||
", window %u, count %u) salt %" PRIu64,
|
", window %u, count %u) salt %" PRIu64,
|
||||||
nops_completed, serial, window_width, head_count, salt);
|
nops_completed, serial, window_width, head_count, salt);
|
||||||
|
|
||||||
|
@ -340,18 +340,18 @@ void testcase::report(size_t nops_done) {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
nops_completed += nops_done;
|
nops_completed += nops_done;
|
||||||
log_debug("== complete +%" PRIuPTR " iteration, total %" PRIuPTR " done",
|
log_debug("== complete +%" PRIuPTR " iteration, total %" PRIu64 " done",
|
||||||
nops_done, nops_completed);
|
nops_done, nops_completed);
|
||||||
|
|
||||||
kick_progress(true);
|
kick_progress(true);
|
||||||
|
|
||||||
if (config.signal_nops && !signalled &&
|
if (config.signal_nops && !signalled &&
|
||||||
config.signal_nops <= nops_completed) {
|
config.signal_nops <= nops_completed) {
|
||||||
log_trace(">> signal(n-ops %" PRIuPTR ")", nops_completed);
|
log_trace(">> signal(n-ops %" PRIu64 ")", nops_completed);
|
||||||
if (!global::singlemode)
|
if (!global::singlemode)
|
||||||
osal_broadcast(config.actor_id);
|
osal_broadcast(config.actor_id);
|
||||||
signalled = true;
|
signalled = true;
|
||||||
log_trace("<< signal(n-ops %" PRIuPTR ")", nops_completed);
|
log_trace("<< signal(n-ops %" PRIu64 ")", nops_completed);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -148,7 +148,7 @@ protected:
|
|||||||
bool signalled{false};
|
bool signalled{false};
|
||||||
bool need_speculum_assign{false};
|
bool need_speculum_assign{false};
|
||||||
|
|
||||||
size_t nops_completed{0};
|
uint64_t nops_completed{0};
|
||||||
chrono::time start_timestamp;
|
chrono::time start_timestamp;
|
||||||
keygen::buffer key;
|
keygen::buffer key;
|
||||||
keygen::buffer data;
|
keygen::buffer data;
|
||||||
|
@ -139,7 +139,7 @@ bool testcase_ttl::run() {
|
|||||||
const unsigned window_width =
|
const unsigned window_width =
|
||||||
(!should_continue() || flipcoin_x4()) ? 0 : edge2window(salt);
|
(!should_continue() || flipcoin_x4()) ? 0 : edge2window(salt);
|
||||||
unsigned head_count = edge2count(salt);
|
unsigned head_count = edge2count(salt);
|
||||||
log_debug("ttl: step #%zu (serial %" PRIu64
|
log_debug("ttl: step #%" PRIu64 " (serial %" PRIu64
|
||||||
", window %u, count %u) salt %" PRIu64,
|
", window %u, count %u) salt %" PRIu64,
|
||||||
nops_completed, serial, window_width, head_count, salt);
|
nops_completed, serial, window_width, head_count, salt);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user