Commit 0bc28ee9 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

add unique_checks option to db-benchmark-test to show the excessive splitting...

add unique_checks option to db-benchmark-test to show the excessive splitting and merging bug. addresses #1828

git-svn-id: file:///svn/toku/tokudb@12938 c7de825b-a66e-492c-adef-691d508d4ae1
parent 45f82b3f
......@@ -472,6 +472,13 @@ int main (int argc, const char *argv[]) {
env_open_flags |= DB_INIT_LOCK;
else
env_open_flags &= ~DB_INIT_LOCK;
} else if (strcmp(arg, "--unique_checks") == 0) {
if (i+1 >= argc) return print_usage(argv[0]);
int unique_checks = atoi(argv[++i]);
if (unique_checks)
put_flags = DB_NOOVERWRITE;
else
put_flags = DB_YESOVERWRITE;
} else {
return print_usage(argv[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