Skip to content

Commit 218857b

Browse files
author
Lei Jin
committed
remove tailing_iter.h/cc
Summary: as title Test Plan: make all check ran db_bench and saw seek stats at the end Reviewers: yhchiang, igor, sdong Reviewed By: sdong Subscribers: leveldb Differential Revision: https://reviews.facebook.net/D21651
1 parent 5d0074c commit 218857b

File tree

4 files changed

+7
-322
lines changed

4 files changed

+7
-322
lines changed

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ TESTS = \
116116
table_test \
117117
thread_local_test \
118118
geodb_test \
119-
rate_limiter_test \
119+
rate_limiter_test \
120+
cuckoo_table_builder_test \
120121
options_test \
121122
cuckoo_table_builder_test \
122123
cuckoo_table_reader_test \
@@ -235,7 +236,7 @@ valgrind_check: all $(PROGRAMS) $(TESTS)
235236
echo $$t $$((etime - stime)) >> $(VALGRIND_DIR)/valgrind_tests_times; \
236237
done
237238

238-
unity.cc:
239+
unity.cc:
239240
$(shell (export ROCKSDB_ROOT="$(CURDIR)"; "$(CURDIR)/build_tools/unity" "$(CURDIR)/unity.cc"))
240241

241242
unity: unity.cc unity.o

db/db_impl.cc

+4-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#include "db/merge_helper.h"
3636
#include "db/table_cache.h"
3737
#include "db/table_properties_collector.h"
38-
#include "db/tailing_iter.h"
3938
#include "db/forward_iterator.h"
4039
#include "db/transaction_log_impl.h"
4140
#include "db/version_set.h"
@@ -3704,7 +3703,10 @@ Status DBImpl::NewIterators(
37043703
#else
37053704
for (auto cfh : column_families) {
37063705
auto cfd = reinterpret_cast<ColumnFamilyHandleImpl*>(cfh)->cfd();
3707-
iterators->push_back(new TailingIterator(env_, this, options, cfd));
3706+
auto iter = new ForwardIterator(this, options, cfd);
3707+
iterators->push_back(
3708+
NewDBIterator(env_, *cfd->options(), cfd->user_comparator(), iter,
3709+
kMaxSequenceNumber));
37083710
}
37093711
#endif
37103712
} else {

db/tailing_iter.cc

-221
This file was deleted.

db/tailing_iter.h

-97
This file was deleted.

0 commit comments

Comments
 (0)