Fix RocksDB Lite build in db_stress

Summary: Fix RocksDB Lite build in db_stress

Test Plan: OPT=-DROCKSDB_LITE db_stress

Reviewers: IslamAbdelRahman, kradhakrishnan, sdong

Reviewed By: sdong

Subscribers: andrewkr, dhruba, leveldb

Differential Revision: https://reviews.facebook.net/D57045
This commit is contained in:
Yueh-Hsuan Chiang 2016-04-21 14:47:23 -07:00
parent 5bd4022fec
commit 644f978c18
1 changed files with 2 additions and 0 deletions

View File

@ -1614,6 +1614,7 @@ class StressTest {
} }
} }
#ifndef ROCKSDB_LITE // Lite does not support GetColumnFamilyMetaData
if (FLAGS_compact_files_one_in > 0 && if (FLAGS_compact_files_one_in > 0 &&
thread->rand.Uniform(FLAGS_compact_files_one_in) == 0) { thread->rand.Uniform(FLAGS_compact_files_one_in) == 0) {
auto* random_cf = auto* random_cf =
@ -1663,6 +1664,7 @@ class StressTest {
} }
} }
} }
#endif // !ROCKSDB_LITE
long rand_key = thread->rand.Next() % max_key; long rand_key = thread->rand.Next() % max_key;
int rand_column_family = thread->rand.Next() % FLAGS_column_families; int rand_column_family = thread->rand.Next() % FLAGS_column_families;