Skip to content

Commit

Permalink
Temporarily disable CompactFiles in db_stress in its default setting
Browse files Browse the repository at this point in the history
Summary:
As db_stress with CompactFiles possibly catches a previous bug currently,
temporarily disable CompactFiles in db_stress in its default setting
to allows new bug to be detected while investigating the bug in CompactFiles.

Test Plan: crash test

Reviewers: sdong, kradhakrishnan, IslamAbdelRahman

Reviewed By: IslamAbdelRahman

Subscribers: andrewkr, dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D57333
  • Loading branch information
yhchiang committed Apr 27, 2016
1 parent 1c80dfa commit ad573b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/db_stress.cc
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ DEFINE_uint64(max_bytes_for_level_base, 256 * KB, "Max bytes for level-1");
DEFINE_int32(max_bytes_for_level_multiplier, 2,
"A multiplier to compute max bytes for level-N (N >= 2)");

DEFINE_int32(compact_files_one_in, 1000,
// Temporarily disable this to allows it to detect new bugs
DEFINE_int32(compact_files_one_in, 0,
"If non-zero, then CompactFiles() will be called one for every N "
"operations IN AVERAGE. 0 indicates CompactFiles() is disabled.");

Expand Down

0 comments on commit ad573b9

Please sign in to comment.