Check to db_stress to not allow disable_wal and reopens set together
Summary: db can't reopen safely with disable_wal set! Test Plan: make db_stress; run db_stress with disable_wal and reopens set and see error Reviewers: dhruba, vamsi Reviewed By: dhruba CC: leveldb Differential Revision: https://reviews.facebook.net/D10857
This commit is contained in:
parent
839f6db77e
commit
3827403c51
|
@ -1152,7 +1152,10 @@ int main(int argc, char** argv) {
|
||||||
fprintf(stderr, "Error: Read + Delete percents > 100!\n");
|
fprintf(stderr, "Error: Read + Delete percents > 100!\n");
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
if (FLAGS_disable_wal == 1 && FLAGS_reopen > 0) {
|
||||||
|
fprintf(stderr, "Error: Db cannot reopen safely with disable_wal set!\n");
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
if ((unsigned)FLAGS_reopen >= FLAGS_ops_per_thread) {
|
if ((unsigned)FLAGS_reopen >= FLAGS_ops_per_thread) {
|
||||||
fprintf(stderr, "Error: #DB-reopens should be < ops_per_thread\n"
|
fprintf(stderr, "Error: #DB-reopens should be < ops_per_thread\n"
|
||||||
"Provided reopens = %d and ops_per_thread = %u\n", FLAGS_reopen,
|
"Provided reopens = %d and ops_per_thread = %u\n", FLAGS_reopen,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user