summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYueh-Hsuan Chiang <yhchiang@fb.com>2015-06-02 17:07:16 -0700
committerYueh-Hsuan Chiang <yhchiang@fb.com>2015-06-02 17:07:16 -0700
commitfe5c6321cb508505748fda01002a39b2bbe888a1 (patch)
treeb31cc76f22b2a510431c5046c4c6c49fd4948d30 /Makefile
parent3083ed2129df7ff7ec5b44f939a5c2412f27e8b5 (diff)
Allow EventListener::OnCompactionCompleted to return CompactionJobStats.
Summary: Allow EventListener::OnCompactionCompleted to return CompactionJobStats, which contains useful information about a compaction. Example CompactionJobStats returned by OnCompactionCompleted(): smallest_output_key_prefix 05000000 largest_output_key_prefix 06990000 elapsed_time 42419 num_input_records 300 num_input_files 3 num_input_files_at_output_level 2 num_output_records 200 num_output_files 1 actual_bytes_input 167200 actual_bytes_output 110688 total_input_raw_key_bytes 5400 total_input_raw_value_bytes 300000 num_records_replaced 100 is_manual_compaction 1 Test Plan: Developed a mega test in db_test which covers 20 variables in CompactionJobStats. Reviewers: rven, igor, anthony, sdong Reviewed By: sdong Subscribers: tnovak, dhruba, leveldb Differential Revision: https://reviews.facebook.net/D38463
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 8ff563f00..e7e62ca70 100644
--- a/Makefile
+++ b/Makefile
@@ -289,7 +289,8 @@ TESTS = \
compact_files_test \
perf_context_test \
optimistic_transaction_test \
- write_callback_test
+ write_callback_test \
+ compaction_job_stats_test
SUBSET := $(shell echo $(TESTS) |sed s/^.*$(ROCKSDBTESTS_START)/$(ROCKSDBTESTS_START)/)
@@ -714,6 +715,9 @@ flush_job_test: db/flush_job_test.o $(LIBOBJECTS) $(TESTHARNESS)
compaction_job_test: db/compaction_job_test.o $(LIBOBJECTS) $(TESTHARNESS)
$(AM_LINK)
+compaction_job_stats_test: db/compaction_job_stats_test.o $(LIBOBJECTS) $(TESTHARNESS)
+ $(AM_LINK)
+
wal_manager_test: db/wal_manager_test.o $(LIBOBJECTS) $(TESTHARNESS)
$(AM_LINK)