diff options
author | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-08-12 13:24:35 -0400 |
---|---|---|
committer | Kaloian Manassiev <kaloian.manassiev@mongodb.com> | 2015-08-12 17:19:31 -0400 |
commit | 2482d4387b6a0fcdf825e07d7f5260041a89f3f6 (patch) | |
tree | 165b54668d3d7589e71c702db330f40109e89227 /src/mongo/db/repl/oplogreader.cpp | |
parent | 7e8fb8df8eb69c7817a8fd00b78ae2f617d9f10d (diff) | |
download | mongo-2482d4387b6a0fcdf825e07d7f5260041a89f3f6.tar.gz |
SERVER-19855 Parsing/serialization logic for OpTime
This change pulls the OpTime serialization/deserialization logic to be
part of the class.
Diffstat (limited to 'src/mongo/db/repl/oplogreader.cpp')
-rw-r--r-- | src/mongo/db/repl/oplogreader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/oplogreader.cpp b/src/mongo/db/repl/oplogreader.cpp index 06f2da78101..0a94ba73e87 100644 --- a/src/mongo/db/repl/oplogreader.cpp +++ b/src/mongo/db/repl/oplogreader.cpp @@ -183,7 +183,7 @@ void OplogReader::connectToSyncSource(OperationContext* txn, // Read the first (oldest) op and confirm that it's not newer than our last // fetched op. Otherwise, we have fallen off the back of that source's oplog. BSONObj remoteOldestOp(findOne(rsOplogName.c_str(), Query())); - OpTime remoteOldOpTime = extractOpTime(remoteOldestOp); + OpTime remoteOldOpTime = fassertStatusOK(28776, OpTime::parseFromBSON(remoteOldestOp)); // remoteOldOpTime may come from a very old config, so we cannot compare their terms. if (!lastOpTimeFetched.isNull() && |