summaryrefslogtreecommitdiff
path: root/src/mongo/db/repair_database.h
diff options
context:
space:
mode:
authorXiangyu Yao <xiangyu.yao@mongodb.com>2019-06-19 00:38:36 -0400
committerXiangyu Yao <xiangyu.yao@mongodb.com>2019-06-28 15:03:00 -0400
commit2597e7fbe3c09683408b82b8b854023d6c2dbbf2 (patch)
tree8cfe4373adec95180cd2a1c37f428626bab94bfc /src/mongo/db/repair_database.h
parent47ee8f8cde1d1e116caf223458c15b4af10943d6 (diff)
downloadmongo-2597e7fbe3c09683408b82b8b854023d6c2dbbf2.tar.gz
SERVER-40717 Remove CollectionCatalogEntry and KVColletionCatalogEntry
Diffstat (limited to 'src/mongo/db/repair_database.h')
-rw-r--r--src/mongo/db/repair_database.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/db/repair_database.h b/src/mongo/db/repair_database.h
index b8543e0c973..50fed16a86c 100644
--- a/src/mongo/db/repair_database.h
+++ b/src/mongo/db/repair_database.h
@@ -35,10 +35,11 @@
#include "mongo/bson/bsonobj.h"
namespace mongo {
-class CollectionCatalogEntry;
+class Collection;
+class StorageEngine;
+class NamespaceString;
class OperationContext;
class Status;
-class StorageEngine;
class StringData;
typedef std::pair<std::vector<std::string>, std::vector<BSONObj>> IndexNameObjs;
@@ -51,7 +52,7 @@ typedef std::pair<std::vector<std::string>, std::vector<BSONObj>> IndexNameObjs;
* should be included in the result.
*/
StatusWith<IndexNameObjs> getIndexNameObjs(OperationContext* opCtx,
- CollectionCatalogEntry* cce,
+ const NamespaceString& nss,
std::function<bool(const std::string&)> filter =
[](const std::string& indexName) { return true; });
@@ -60,7 +61,7 @@ StatusWith<IndexNameObjs> getIndexNameObjs(OperationContext* opCtx,
* One example usage is when a 'dropIndex' command is rolled back. The dropped index must be remade.
*/
Status rebuildIndexesOnCollection(OperationContext* opCtx,
- CollectionCatalogEntry* cce,
+ Collection* collection,
const std::vector<BSONObj>& indexSpecs);
/**