Example #1
0
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()));
}
Example #2
0
 long long get() const {
     return cursorStatsMultiTarget.get() + cursorStatsSingleTarget.get();
 }
Example #3
0
long long ClientCursor::totalOpen() {
    return cursorStatsOpen.get();
}