| 59 | } |
| 60 | |
| 61 | Reference<Cursor> Cursor::add(std::map<int64_t, Reference<Cursor>>& siblings, Reference<Cursor> cursor) { |
| 62 | cursor->siblings = &siblings; |
| 63 | siblings[cursor->id] = cursor; |
| 64 | DocumentLayer::metricReporter->captureGauge(DocLayerConstants::MT_GUAGE_ACTIVE_CURSORS, siblings.size()); |
| 65 | return cursor; |
| 66 | } |