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

Method getUnboundCollectionContext

src/MetadataManager.actor.cpp:224–232  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222}
223
224Future<Reference<UnboundCollectionContext>> MetadataManager::getUnboundCollectionContext(
225 Reference<DocTransaction> tr,
226 Namespace const& ns,
227 bool allowSystemNamespace,
228 bool createCollectionIfAbsent) {
229 if (!allowSystemNamespace && startsWith(ns.second.c_str(), "system."))
230 throw write_system_namespace();
231 return assembleCollectionContext(tr, ns, Reference<MetadataManager>::addRef(this), createCollectionIfAbsent);
232}
233
234Future<Reference<UnboundCollectionContext>> MetadataManager::refreshUnboundCollectionContext(
235 Reference<UnboundCollectionContext> cx,

Calls 1

startsWithFunction · 0.85

Tested by

no test coverage detected