summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/feature_compatibility_version.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/feature_compatibility_version.h')
-rw-r--r--src/mongo/db/commands/feature_compatibility_version.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mongo/db/commands/feature_compatibility_version.h b/src/mongo/db/commands/feature_compatibility_version.h
index 4bcb4b56e55..8e7969c2e70 100644
--- a/src/mongo/db/commands/feature_compatibility_version.h
+++ b/src/mongo/db/commands/feature_compatibility_version.h
@@ -76,21 +76,22 @@ public:
/**
* Examines a document inserted or updated in admin.system.version. If it is the
- * featureCompatibilityVersion document, validates the document and updates the server
- * parameter.
+ * featureCompatibilityVersion document, validates the document and on commit, updates
+ * the server parameter.
*/
- static void onInsertOrUpdate(const BSONObj& doc);
+ static void onInsertOrUpdate(OperationContext* opCtx, const BSONObj& doc);
/**
* Examines the _id of a document removed from admin.system.version. If it is the
* featureCompatibilityVersion document, resets the server parameter to its default value (3.2).
+ * on commit.
*/
- static void onDelete(const BSONObj& doc);
+ static void onDelete(OperationContext* opCtx, const BSONObj& doc);
/**
- * Resets the server parameter to its default value (3.2).
+ * Resets the server parameter to its default value (3.2) on commit.
*/
- static void onDropCollection();
+ static void onDropCollection(OperationContext* opCtx);
};
} // namespace mongo