提交 644f978c 编写于 作者: Y Yueh-Hsuan Chiang

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
上级 5bd4022f
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册