diff options
author | Judah Schvimer <judah@mongodb.com> | 2017-03-08 17:14:26 -0500 |
---|---|---|
committer | Judah Schvimer <judah@mongodb.com> | 2017-03-08 17:14:26 -0500 |
commit | c05f900dd80342d0899f6461f845dc97fe942b01 (patch) | |
tree | 8a540d49401bfecced41b6cd5fd6a1659d4123a6 /src/mongo/db/repl/sync_source_resolver.h | |
parent | d44517bc2cfefbc3c1a68626d511f0e2ade559f6 (diff) | |
download | mongo-c05f900dd80342d0899f6461f845dc97fe942b01.tar.gz |
SERVER-27403 Ensure sync source is ahead and has not rolled back after first OplogFetcher batch
Diffstat (limited to 'src/mongo/db/repl/sync_source_resolver.h')
-rw-r--r-- | src/mongo/db/repl/sync_source_resolver.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/repl/sync_source_resolver.h b/src/mongo/db/repl/sync_source_resolver.h index 48f7e968a8d..201658caacf 100644 --- a/src/mongo/db/repl/sync_source_resolver.h +++ b/src/mongo/db/repl/sync_source_resolver.h @@ -70,10 +70,10 @@ struct SyncSourceResolverResponse { // Contains the new MinValid boundry if syncSourceStatus is ErrorCodes::OplogStartMissing. OpTime earliestOpTimeSeen; - // Rollback ID of the selected sync source. Only filled in when there is a required optime. + // Rollback ID of the selected sync source. // The rbid is fetched before the required optime so callers can be sure that as long as the // rbid is the same, the required optime is still present. - boost::optional<int> rbid; + int rbid; bool isOK() { return syncSourceStatus.isOK(); @@ -230,7 +230,7 @@ private: const OnCompletionFn _onCompletion; // The rbid we will return to our caller. - boost::optional<int> _rbid; + int _rbid; // Protects members of this sync source resolver defined below. mutable stdx::mutex _mutex; |