diff options
Diffstat (limited to 'src/mongo/db/storage/wiredtiger/wiredtiger_util.h')
-rw-r--r-- | src/mongo/db/storage/wiredtiger/wiredtiger_util.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_util.h b/src/mongo/db/storage/wiredtiger/wiredtiger_util.h index dd8e7f73884..f3f92b26f06 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_util.h +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_util.h @@ -139,9 +139,20 @@ public: BSONObjBuilder* bob); /** - * Gets entire metadata string for collection/index at URI. + * Gets the creation metadata string for a collection or index at a given URI. Accepts an + * OperationContext or session. + * + * This returns more information, but is slower than getMetadata(). + */ + static StatusWith<std::string> getMetadataCreate(OperationContext* opCtx, StringData uri); + static StatusWith<std::string> getMetadataCreate(WT_SESSION* session, StringData uri); + + /** + * Gets the entire metadata string for collection or index at URI. Accepts an OperationContext + * or session. */ static StatusWith<std::string> getMetadata(OperationContext* opCtx, StringData uri); + static StatusWith<std::string> getMetadata(WT_SESSION* session, StringData uri); /** * Reads app_metadata for collection/index at URI as a BSON document. |