void CursorCache::appendInfo(BSONObjBuilder& result) const { stdx::lock_guard<stdx::mutex> lk(_mutex); result.append("sharded", static_cast<int>(cursorStatsMultiTarget.get())); result.appendNumber("shardedEver", _shardedTotal); result.append("refs", static_cast<int>(cursorStatsSingleTarget.get())); result.append("totalOpen", static_cast<int>(cursorStatsTotalOpen.get())); }
long long get() const { return cursorStatsMultiTarget.get() + cursorStatsSingleTarget.get(); }
long long ClientCursor::totalOpen() { return cursorStatsOpen.get(); }