[db stress] Don't drop column families if there's only 1

This commit is contained in:
Igor Canadi 2014-07-14 07:56:07 -07:00
parent ee6b35e55a
commit 591c2a3b4b
1 changed files with 1 additions and 1 deletions

View File

@ -1202,7 +1202,7 @@ class StressTest {
}
if (!FLAGS_test_batches_snapshots &&
FLAGS_clear_column_family_one_in != 0) {
FLAGS_clear_column_family_one_in != 0 && FLAGS_column_families > 1) {
if (thread->rand.OneIn(FLAGS_clear_column_family_one_in)) {
// drop column family and then create it again (can't drop default)
int cf = thread->rand.Next() % (FLAGS_column_families - 1) + 1;