diff options
Diffstat (limited to 'src/mongo/db/storage/wiredtiger/wiredtiger_util.h')
-rw-r--r-- | src/mongo/db/storage/wiredtiger/wiredtiger_util.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_util.h b/src/mongo/db/storage/wiredtiger/wiredtiger_util.h index 4072dfc3c2e..93dbd9dbdbc 100644 --- a/src/mongo/db/storage/wiredtiger/wiredtiger_util.h +++ b/src/mongo/db/storage/wiredtiger/wiredtiger_util.h @@ -149,6 +149,15 @@ public: BSONObjBuilder* bob); /** + * Fetches the operation statistics, converts those into a BSONObj and resets the statistics + * at the end. + */ + static Status exportOperationStatsInfoToBSON(WT_SESSION* s, + const std::string& uri, + const std::string& config, + BSONObjBuilder* bob); + + /** * Gets entire metadata string for collection/index at URI with the provided session. */ static StatusWith<std::string> getMetadataRaw(WT_SESSION* session, StringData uri); |