diff options
author | Judah Schvimer <judah@mongodb.com> | 2017-04-21 10:27:59 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2017-04-28 19:52:01 -0400 |
commit | 7358c66cbf77203fa0803417a4442e35f11bf3f7 (patch) | |
tree | 947ec510b25c7643e3eb8c9e948fdaa75c163888 /src/mongo/db/repl/replication_info.cpp | |
parent | 60636b4d3ae60a24c080c7250459814eef5e7c87 (diff) | |
download | mongo-7358c66cbf77203fa0803417a4442e35f11bf3f7.tar.gz |
SERVER-27659 Persist Rollback Id
Diffstat (limited to 'src/mongo/db/repl/replication_info.cpp')
-rw-r--r-- | src/mongo/db/repl/replication_info.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/db/repl/replication_info.cpp b/src/mongo/db/repl/replication_info.cpp index 18ad4ab2d11..a852ff23041 100644 --- a/src/mongo/db/repl/replication_info.cpp +++ b/src/mongo/db/repl/replication_info.cpp @@ -47,6 +47,7 @@ #include "mongo/db/repl/oplog.h" #include "mongo/db/repl/oplogreader.h" #include "mongo/db/repl/replication_coordinator_global.h" +#include "mongo/db/repl/storage_interface.h" #include "mongo/db/server_options.h" #include "mongo/db/server_parameters.h" #include "mongo/db/storage/storage_options.h" @@ -168,7 +169,11 @@ public: BSONObjBuilder result; appendReplicationInfo(opCtx, result, level); - getGlobalReplicationCoordinator()->processReplSetGetRBID(&result); + + auto rbid = StorageInterface::get(opCtx)->getRollbackID(opCtx); + if (rbid.isOK()) { + result.append("rbid", rbid.getValue()); + } return result.obj(); } |