Skip to content

Commit

Permalink
Fix failed compaction_filter_example and add it into make all
Browse files Browse the repository at this point in the history
Summary:
Simple patch as title
Closes facebook#1512

Differential Revision: D4186994

Pulled By: siying

fbshipit-source-id: 880f9b8
  • Loading branch information
daoye.ch authored and Facebook Github Bot committed Nov 16, 2016
1 parent 53b693f commit 4b0aa3c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ endif

.PHONY: clean librocksdb

all: simple_example column_families_example compact_files_example c_simple_example optimistic_transaction_example transaction_example
all: simple_example column_families_example compact_files_example c_simple_example optimistic_transaction_example transaction_example compaction_filter_example

simple_example: librocksdb simple_example.cc
$(CXX) $(CXXFLAGS) $@.cc -o$@ ../librocksdb.a -I../include -O2 -std=c++11 $(PLATFORM_LDFLAGS) $(PLATFORM_CXXFLAGS) $(EXEC_LDFLAGS)
Expand Down
4 changes: 2 additions & 2 deletions examples/compaction_filter_example.cc
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ int main() {
db->Merge(wopts, "3", "data3");
db->CompactRange(rocksdb::CompactRangeOptions(), nullptr, nullptr);
fprintf(stderr, "filter.count_ = %d\n", filter.count_);
assert(filter.count_ == 1);
assert(filter.count_ == 0);
fprintf(stderr, "filter.merge_count_ = %d\n", filter.merge_count_);
assert(filter.merge_count_ == 5);
assert(filter.merge_count_ == 6);
}

0 comments on commit 4b0aa3c

Please sign in to comment.