|
|
|
@ -119,7 +119,7 @@ TEST_F(EventListenerTest, OnSingleDBCompactionTest) { |
|
|
|
|
options.max_bytes_for_level_base = options.target_file_size_base * 2; |
|
|
|
|
options.max_bytes_for_level_multiplier = 2; |
|
|
|
|
options.compression = kNoCompression; |
|
|
|
|
#if ROCKSDB_USING_THREAD_STATUS |
|
|
|
|
#ifdef ROCKSDB_USING_THREAD_STATUS |
|
|
|
|
options.enable_thread_tracking = true; |
|
|
|
|
#endif // ROCKSDB_USING_THREAD_STATUS
|
|
|
|
|
options.level0_file_num_compaction_trigger = kNumL0Files; |
|
|
|
@ -176,7 +176,7 @@ class TestFlushListener : public EventListener { |
|
|
|
|
ASSERT_GT(info.table_properties.num_data_blocks, 0U); |
|
|
|
|
ASSERT_GT(info.table_properties.num_entries, 0U); |
|
|
|
|
|
|
|
|
|
#if ROCKSDB_USING_THREAD_STATUS |
|
|
|
|
#ifdef ROCKSDB_USING_THREAD_STATUS |
|
|
|
|
// Verify the id of the current thread that created this table
|
|
|
|
|
// file matches the id of any active flush or compaction thread.
|
|
|
|
|
uint64_t thread_id = env_->GetThreadID(); |
|
|
|
@ -232,7 +232,7 @@ class TestFlushListener : public EventListener { |
|
|
|
|
TEST_F(EventListenerTest, OnSingleDBFlushTest) { |
|
|
|
|
Options options; |
|
|
|
|
options.write_buffer_size = k110KB; |
|
|
|
|
#if ROCKSDB_USING_THREAD_STATUS |
|
|
|
|
#ifdef ROCKSDB_USING_THREAD_STATUS |
|
|
|
|
options.enable_thread_tracking = true; |
|
|
|
|
#endif // ROCKSDB_USING_THREAD_STATUS
|
|
|
|
|
TestFlushListener* listener = new TestFlushListener(options.env); |
|
|
|
@ -268,7 +268,7 @@ TEST_F(EventListenerTest, OnSingleDBFlushTest) { |
|
|
|
|
TEST_F(EventListenerTest, MultiCF) { |
|
|
|
|
Options options; |
|
|
|
|
options.write_buffer_size = k110KB; |
|
|
|
|
#if ROCKSDB_USING_THREAD_STATUS |
|
|
|
|
#ifdef ROCKSDB_USING_THREAD_STATUS |
|
|
|
|
options.enable_thread_tracking = true; |
|
|
|
|
#endif // ROCKSDB_USING_THREAD_STATUS
|
|
|
|
|
TestFlushListener* listener = new TestFlushListener(options.env); |
|
|
|
@ -302,7 +302,7 @@ TEST_F(EventListenerTest, MultiCF) { |
|
|
|
|
|
|
|
|
|
TEST_F(EventListenerTest, MultiDBMultiListeners) { |
|
|
|
|
Options options; |
|
|
|
|
#if ROCKSDB_USING_THREAD_STATUS |
|
|
|
|
#ifdef ROCKSDB_USING_THREAD_STATUS |
|
|
|
|
options.enable_thread_tracking = true; |
|
|
|
|
#endif // ROCKSDB_USING_THREAD_STATUS
|
|
|
|
|
options.table_properties_collector_factories.push_back( |
|
|
|
@ -384,7 +384,7 @@ TEST_F(EventListenerTest, MultiDBMultiListeners) { |
|
|
|
|
|
|
|
|
|
TEST_F(EventListenerTest, DisableBGCompaction) { |
|
|
|
|
Options options; |
|
|
|
|
#if ROCKSDB_USING_THREAD_STATUS |
|
|
|
|
#ifdef ROCKSDB_USING_THREAD_STATUS |
|
|
|
|
options.enable_thread_tracking = true; |
|
|
|
|
#endif // ROCKSDB_USING_THREAD_STATUS
|
|
|
|
|
TestFlushListener* listener = new TestFlushListener(options.env); |
|
|
|
|