| 222 | } |
| 223 | |
| 224 | Future<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 | |
| 234 | Future<Reference<UnboundCollectionContext>> MetadataManager::refreshUnboundCollectionContext( |
| 235 | Reference<UnboundCollectionContext> cx, |
no test coverage detected