diff options
author | Benety Goh <benety@mongodb.com> | 2018-02-13 12:50:24 -0500 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2018-02-13 12:53:35 -0500 |
commit | 6353f3613ac73d67bc064f7bbc81f949e6542838 (patch) | |
tree | 051967c62ccb9e44e1fdc2e35c4ceaf6e07bf37d /src/mongo/db/repl/repl_set_commands.cpp | |
parent | da12466c2f109ada2d487db9c6fd92200f5b6b1d (diff) | |
download | mongo-6353f3613ac73d67bc064f7bbc81f949e6542838.tar.gz |
SERVER-32776 ReplicationProcess::getRollbackID() no longer reads from storage to refresh cached rollback id
Diffstat (limited to 'src/mongo/db/repl/repl_set_commands.cpp')
-rw-r--r-- | src/mongo/db/repl/repl_set_commands.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mongo/db/repl/repl_set_commands.cpp b/src/mongo/db/repl/repl_set_commands.cpp index f436cbf881c..1aa71ccfca7 100644 --- a/src/mongo/db/repl/repl_set_commands.cpp +++ b/src/mongo/db/repl/repl_set_commands.cpp @@ -171,12 +171,7 @@ public: if (!status.isOK()) return CommandHelpers::appendCommandStatus(result, status); - auto rbid = ReplicationProcess::get(opCtx)->getRollbackID(opCtx); - - // We should always have a Rollback ID since it is created at startup. - fassertStatusOK(40426, rbid.getStatus()); - - result.append("rbid", rbid.getValue()); + result.append("rbid", ReplicationProcess::get(opCtx)->getRollbackID()); return CommandHelpers::appendCommandStatus(result, Status::OK()); } } cmdReplSetRBID; |