From 591c2a3b4b14dc984500792c7ed90ac7ba832f3d Mon Sep 17 00:00:00 2001 From: Igor Canadi Date: Mon, 14 Jul 2014 07:56:07 -0700 Subject: [PATCH] [db stress] Don't drop column families if there's only 1 --- tools/db_stress.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/db_stress.cc b/tools/db_stress.cc index 337199a24b..aae0e05981 100644 --- a/tools/db_stress.cc +++ b/tools/db_stress.cc @@ -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;