summaryrefslogtreecommitdiff
path: root/src/mongo/db/repair_database.h
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2019-01-25 18:26:12 -0500
committerGregory Wlodarek <gregory.wlodarek@mongodb.com>2019-01-25 18:37:28 -0500
commitd76c1d8a1061cb4fe8111ded7db18d1ea9e6275e (patch)
tree36a06b8998b542f8a0536c99ccbde00740f9cf59 /src/mongo/db/repair_database.h
parentfca0ff24600172186132291171bd3324afc2b4dc (diff)
downloadmongo-d76c1d8a1061cb4fe8111ded7db18d1ea9e6275e.tar.gz
SERVER-39037 Refactor check whether a replica set node is running in standalone mode
Diffstat (limited to 'src/mongo/db/repair_database.h')
-rw-r--r--src/mongo/db/repair_database.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/mongo/db/repair_database.h b/src/mongo/db/repair_database.h
index 2987834a03f..c3c5d0ef423 100644
--- a/src/mongo/db/repair_database.h
+++ b/src/mongo/db/repair_database.h
@@ -74,6 +74,15 @@ Status rebuildIndexesOnCollection(OperationContext* opCtx,
* Repairs a database using a storage engine-specific, best-effort process.
* Some data may be lost or modified in the process but the output will
* be structurally valid on successful return.
+ *
+ * Calls 'onRecordStoreRepair' after repairing all the collection record stores for each database
+ * before rebuilding the appropriate indexes.
+ *
+ * It is expected that the local database will be repaired first when running in repair mode.
*/
-Status repairDatabase(OperationContext* opCtx, StorageEngine* engine, const std::string& dbName);
-}
+Status repairDatabase(OperationContext* opCtx,
+ StorageEngine* engine,
+ const std::string& dbName,
+ stdx::function<void(const std::string& dbName)> onRecordStoreRepair);
+
+} // namespace mongo