diff options
author | Lingzhi Deng <lingzhi.deng@mongodb.com> | 2020-10-13 15:08:52 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-10-15 19:16:42 +0000 |
commit | 9f52be8cf511d4fe0b2aa8eb20e18c47a5bf097d (patch) | |
tree | 9e6a7afee6b444d9f760f7133154bda041235276 /src/mongo/embedded | |
parent | bef72de45709f2e1e6874e9b5f29a01e3fa8c413 (diff) | |
download | mongo-9f52be8cf511d4fe0b2aa8eb20e18c47a5bf097d.tar.gz |
SERVER-50949: Return empty JournalListener token during rollback
Diffstat (limited to 'src/mongo/embedded')
-rw-r--r-- | src/mongo/embedded/replication_coordinator_embedded.cpp | 3 | ||||
-rw-r--r-- | src/mongo/embedded/replication_coordinator_embedded.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/embedded/replication_coordinator_embedded.cpp b/src/mongo/embedded/replication_coordinator_embedded.cpp index 72b956887ca..b92deb55c45 100644 --- a/src/mongo/embedded/replication_coordinator_embedded.cpp +++ b/src/mongo/embedded/replication_coordinator_embedded.cpp @@ -228,7 +228,8 @@ void ReplicationCoordinatorEmbedded::resetMyLastOpTimes() { UASSERT_NOT_IMPLEMENTED; } -OpTimeAndWallTime ReplicationCoordinatorEmbedded::getMyLastAppliedOpTimeAndWallTime() const { +OpTimeAndWallTime ReplicationCoordinatorEmbedded::getMyLastAppliedOpTimeAndWallTime( + bool rollbackSafe) const { UASSERT_NOT_IMPLEMENTED; } diff --git a/src/mongo/embedded/replication_coordinator_embedded.h b/src/mongo/embedded/replication_coordinator_embedded.h index 502333a0b6b..15ab7521b1b 100644 --- a/src/mongo/embedded/replication_coordinator_embedded.h +++ b/src/mongo/embedded/replication_coordinator_embedded.h @@ -139,7 +139,8 @@ public: void setMyHeartbeatMessage(const std::string&) override; repl::OpTime getMyLastAppliedOpTime() const override; - repl::OpTimeAndWallTime getMyLastAppliedOpTimeAndWallTime() const override; + repl::OpTimeAndWallTime getMyLastAppliedOpTimeAndWallTime( + bool rollbackSafe = false) const override; repl::OpTime getMyLastDurableOpTime() const override; repl::OpTimeAndWallTime getMyLastDurableOpTimeAndWallTime() const override; |