Summary:
Conflict resolving in 846e05005d
("Revert "Merging iterator to avoid child iterator reseek for some cases") caused some timer misplaced. Fix it.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5874
Test Plan: See it build.
Differential Revision: D17705073
fbshipit-source-id: 9bd3a8dc4901ac33c2c6fc5b1091ffbc56a8529f
This commit is contained in:
parent
9f31df8679
commit
d783af1857
@ -112,15 +112,18 @@ 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);
|
||||
// Strictly, we timed slightly more than min heap operation,
|
||||
// but these operations are very cheap.
|
||||
PERF_TIMER_GUARD(seek_min_heap_time);
|
||||
AddToMinHeapOrCheckStatus(&child);
|
||||
{
|
||||
// Strictly, we timed slightly more than min heap operation,
|
||||
// but these operations are very cheap.
|
||||
PERF_TIMER_GUARD(seek_min_heap_time);
|
||||
AddToMinHeapOrCheckStatus(&child);
|
||||
}
|
||||
}
|
||||
direction_ = kForward;
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user