MCPcopy Create free account
hub / github.com/FoundationDB/fdb-document-layer / pluck

Method pluck

src/Cursor.actor.cpp:52–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void 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
61Reference<Cursor> Cursor::add(std::map<int64_t, Reference<Cursor>>& siblings, Reference<Cursor> cursor) {
62 cursor->siblings = &siblings;

Callers

nothing calls this directly

Calls 3

stopMethod · 0.80
captureGaugeMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected