MCPcopy Create free account
hub / github.com/Tencent/phxqueue / SizeGT

Method SizeGT

phxqueue/store/storemeta.cpp:245–251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

243}
244
245int StoreMetaQueue::SizeGT(const StoreMeta &meta) {
246 lock_guard<mutex> lock_guard(impl_->lock);
247
248 auto &&it = impl_->metas.upper_bound(meta);
249 if (it == impl_->metas.end()) return 0;
250 return impl_->metas.rbegin()->GetIndex() - it->GetIndex() + 1;
251}
252
253
254void StoreMetaQueue::Clear() {

Callers 1

GetBackLogByCursorIDMethod · 0.80

Calls 1

GetIndexMethod · 0.80

Tested by

no test coverage detected