summaryrefslogtreecommitdiff
path: root/src/mongo/db/repair_database.h
diff options
context:
space:
mode:
authorScott Hernandez <scotthernandez@gmail.com>2014-12-30 14:46:29 -0500
committerScott Hernandez <scotthernandez@gmail.com>2015-01-02 14:21:08 -0500
commit8b37507dd51cdf058377a24ca0171e7fae6f2c6b (patch)
tree1bea2528edb8df7cf70fda21f6894e59af820f60 /src/mongo/db/repair_database.h
parent430bafbd8643bd1d30513ad231850c6927e8553d (diff)
downloadmongo-8b37507dd51cdf058377a24ca0171e7fae6f2c6b.tar.gz
SERVER-16502: open database after repair is done
Diffstat (limited to 'src/mongo/db/repair_database.h')
-rw-r--r--src/mongo/db/repair_database.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/repair_database.h b/src/mongo/db/repair_database.h
index 85d2729a277..17fb58274aa 100644
--- a/src/mongo/db/repair_database.h
+++ b/src/mongo/db/repair_database.h
@@ -36,6 +36,11 @@ namespace mongo {
class StorageEngine;
class StringData;
+ /**
+ * 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.
+ */
Status repairDatabase(OperationContext* txn,
StorageEngine* engine,
const std::string& dbName,