From: sdong Date: Tue, 1 Oct 2019 23:50:15 +0000 (-0700) Subject: Fix a bug of the previous fix. X-Git-Tag: v6.4.6~7 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=172b9ec84c2f8eb1ef423a807226aeea3fe85d58;p=rocksdb.git Fix a bug of the previous fix. --- diff --git a/table/merging_iterator.cc b/table/merging_iterator.cc index a76b91e7..592eddfb 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()) {