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

Method IndexPlugin

src/QLContext.actor.cpp:300–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298 Optional<Reference<FlowLock>> flowControlLock;
299
300 IndexPlugin(DataKey collectionPath, Reference<IndexInfo> indexInfo, Reference<ITDoc> next)
301 : collectionPath(collectionPath),
302 indexInfo(indexInfo),
303 indexPath(indexInfo->indexCx->getPrefix()), // dbName+collectionName+"metadata"+"indices"+indexName
304 ITDoc(next),
305 multikey(indexInfo->multikey),
306 isUniqueIndex(indexInfo->isUniqueIndex),
307 indexName(indexInfo->indexName),
308 flowControlLock(indexInfo->isUniqueIndex ? Optional<Reference<FlowLock>>(Reference<FlowLock>(new FlowLock(1)))
309 : Optional<Reference<FlowLock>>()) {}
310};
311
312struct CompoundIndexPlugin : IndexPlugin, ReferenceCounted<CompoundIndexPlugin>, FastAllocated<CompoundIndexPlugin> {

Callers

nothing calls this directly

Calls 1

getPrefixMethod · 0.80

Tested by

no test coverage detected