]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commitdiff
Fix a bug of the previous fix.
authorsdong <siying.d@fb.com>
Tue, 1 Oct 2019 23:50:15 +0000 (16:50 -0700)
committersdong <siying.d@fb.com>
Tue, 1 Oct 2019 23:50:15 +0000 (16:50 -0700)
table/merging_iterator.cc

index a76b91e7508312e9e5a5f03d0e9bc879e6799203..592eddfb41a3a2b01841385d14cb5acbd611e3b3 100644 (file)
@@ -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()) {