Skip to content

Commit 76fd825

Browse files
authored
Merge pull request ceph#58924 from imtzw/tzw_ikey_lat
os/bluestore: record omapiter init latency Reviewed-by: Igor Fedotov <[email protected]>
2 parents ca6051e + 6e7bc28 commit 76fd825

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/os/bluestore/BlueStore.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5525,7 +5525,13 @@ BlueStore::OmapIteratorImpl::OmapIteratorImpl(
55255525
if (o->onode.has_omap()) {
55265526
o->get_omap_key(string(), &head);
55275527
o->get_omap_tail(&tail);
5528+
auto start1 = mono_clock::now();
55285529
it->lower_bound(head);
5530+
c->store->log_latency(
5531+
__func__,
5532+
l_bluestore_omap_seek_to_first_lat,
5533+
mono_clock::now() - start1,
5534+
c->store->cct->_conf->bluestore_log_omap_iterator_age);
55295535
}
55305536
}
55315537
BlueStore::OmapIteratorImpl::~OmapIteratorImpl()

0 commit comments

Comments
 (0)