| 50 | } |
| 51 | |
| 52 | void Cursor::pluck(Reference<Cursor> cursor) { |
| 53 | if (cursor) { |
| 54 | cursor->siblings->erase(cursor->id); |
| 55 | cursor->checkpoint->stop(); |
| 56 | DocumentLayer::metricReporter->captureGauge(DocLayerConstants::MT_GUAGE_ACTIVE_CURSORS, |
| 57 | cursor->siblings->size()); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | Reference<Cursor> Cursor::add(std::map<int64_t, Reference<Cursor>>& siblings, Reference<Cursor> cursor) { |
| 62 | cursor->siblings = &siblings; |
nothing calls this directly
no test coverage detected