From 172b9ec84c2f8eb1ef423a807226aeea3fe85d58 Mon Sep 17 00:00:00 2001 From: sdong Date: Tue, 1 Oct 2019 16:50:15 -0700 Subject: [PATCH] Fix a bug of the previous fix. --- table/merging_iterator.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/table/merging_iterator.cc b/table/merging_iterator.cc index a76b91e75..592eddfb4 100644 --- a/table/merging_iterator.cc +++ b/table/merging_iterator.cc @@ -130,8 +130,10 @@ class MergingIterator : public InternalIterator { ClearHeaps(); status_ = Status::OK(); for (auto& child : children_) { - PERF_TIMER_GUARD(seek_child_seek_time); - child.Seek(target); + { + PERF_TIMER_GUARD(seek_child_seek_time); + child.Seek(target); + } PERF_COUNTER_ADD(seek_child_seek_count, 1); if (child.Valid()) {