mirror of https://github.com/facebook/rocksdb.git
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:
parent
5bd4022fec
commit
644f978c18
|
@ -1614,6 +1614,7 @@ class StressTest {
|
|||
}
|
||||
}
|
||||
|
||||
#ifndef ROCKSDB_LITE // Lite does not support GetColumnFamilyMetaData
|
||||
if (FLAGS_compact_files_one_in > 0 &&
|
||||
thread->rand.Uniform(FLAGS_compact_files_one_in) == 0) {
|
||||
auto* random_cf =
|
||||
|
@ -1663,6 +1664,7 @@ class StressTest {
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif // !ROCKSDB_LITE
|
||||
|
||||
long rand_key = thread->rand.Next() % max_key;
|
||||
int rand_column_family = thread->rand.Next() % FLAGS_column_families;
|
||||
|
|
Loading…
Reference in New Issue