diff options
Diffstat (limited to 'src/mongo/db/repl/local_oplog_info.h')
-rw-r--r-- | src/mongo/db/repl/local_oplog_info.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/repl/local_oplog_info.h b/src/mongo/db/repl/local_oplog_info.h index 96cdb259f36..417901e4f4f 100644 --- a/src/mongo/db/repl/local_oplog_info.h +++ b/src/mongo/db/repl/local_oplog_info.h @@ -66,8 +66,8 @@ public: */ void setOplogCollectionName(ServiceContext* service); - Collection* getCollection() const; - void setCollection(Collection* oplog); + const Collection* getCollection() const; + void setCollection(const Collection* oplog); void resetCollection(); /** @@ -88,7 +88,7 @@ private: // The "oplog" pointer is always valid (or null) because an operation must take the global // exclusive lock to set the pointer to null when the Collection instance is destroyed. See // "oplogCheckCloseDatabase". - Collection* _oplog = nullptr; + const Collection* _oplog = nullptr; // Synchronizes the section where a new Timestamp is generated and when it is registered in the // storage engine. |