Commit 6bc942bd authored by Leif Walsh's avatar Leif Walsh Committed by Yoni Fogel

refs #4802 get stress tests' hot_optimize operation to stop early (when the...

refs #4802 get stress tests' hot_optimize operation to stop early (when the test is over) so drd version doesn't take so long


git-svn-id: file:///svn/toku/tokudb@45260 c7de825b-a66e-492c-adef-691d508d4ae1
parent f232608c
......@@ -1266,12 +1266,18 @@ static int UU() update_broadcast_op(DB_TXN *txn, ARG arg, void* UU(operation_ext
return r;
}
static int hot_progress_callback(void *UU(extra), float UU(progress)) {
return run_test ? 0 : 1;
}
static int UU() hot_op(DB_TXN *UU(txn), ARG UU(arg), void* UU(operation_extra), void *UU(stats_extra)) {
int r;
for (int i = 0; i < arg->cli->num_DBs; i++) {
for (int i = 0; run_test && i < arg->cli->num_DBs; i++) {
DB* db = arg->dbp[i];
r = db->hot_optimize(db, NULL, NULL);
CKERR(r);
r = db->hot_optimize(db, hot_progress_callback, NULL);
if (run_test) {
CKERR(r);
}
}
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment