diff options
Diffstat (limited to 'src/mongo/db/catalog/collection.h')
-rw-r--r-- | src/mongo/db/catalog/collection.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/collection.h b/src/mongo/db/catalog/collection.h index 85598d29f51..f661e720a74 100644 --- a/src/mongo/db/catalog/collection.h +++ b/src/mongo/db/catalog/collection.h @@ -387,7 +387,13 @@ public: StringData newLevel, StringData newAction) = 0; - // ----------- + /** + * Returns true if this is a temporary collection. + * + * Calling this function is somewhat costly because it requires accessing the storage engine's + * cache of collection information. + */ + virtual bool isTemporary(OperationContext* opCtx) const = 0; // // Stats |