summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/collection_mock.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/collection_mock.h')
-rw-r--r--src/mongo/db/catalog/collection_mock.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/mongo/db/catalog/collection_mock.h b/src/mongo/db/catalog/collection_mock.h
index 21332edb9e8..e07a110f8ef 100644
--- a/src/mongo/db/catalog/collection_mock.h
+++ b/src/mongo/db/catalog/collection_mock.h
@@ -38,7 +38,7 @@ namespace mongo {
/**
* This class comprises a mock Collection for use by CollectionCatalog unit tests.
*/
-class CollectionMock : public Collection {
+class CollectionMock final : public Collection {
public:
CollectionMock(const NamespaceString& ns)
: CollectionMock(ns, std::unique_ptr<IndexCatalog>()) {}
@@ -226,6 +226,9 @@ public:
CappedCallback* getCappedCallback() {
std::abort();
}
+ const CappedCallback* getCappedCallback() const {
+ std::abort();
+ }
std::shared_ptr<CappedInsertNotifier> getCappedInsertNotifier() const {
std::abort();
@@ -251,7 +254,7 @@ public:
std::abort();
}
- boost::optional<Timestamp> getMinimumVisibleSnapshot() {
+ boost::optional<Timestamp> getMinimumVisibleSnapshot() const {
std::abort();
}
@@ -271,7 +274,7 @@ public:
std::unique_ptr<PlanExecutor, PlanExecutor::Deleter> makePlanExecutor(
OperationContext* opCtx,
PlanYieldPolicy::YieldPolicy yieldPolicy,
- ScanDirection scanDirection) {
+ ScanDirection scanDirection) const {
std::abort();
}
@@ -279,6 +282,8 @@ public:
std::abort();
}
+ void onDeregisterFromCatalog() {}
+
UUID uuid() const {
return _uuid;
}