summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/replication_coordinator_impl.h
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2017-04-06 15:30:59 -0400
committerEric Milkie <milkie@10gen.com>2017-08-22 13:45:12 -0400
commit77dc6917428ffad4b9ff2d54d78fa9b225f78a4b (patch)
treefa2483cb4214fd6858db09ca80523751f65888f5 /src/mongo/db/repl/replication_coordinator_impl.h
parentb1a36aaa34f48df1573d76439419552282f18cbf (diff)
downloadmongo-77dc6917428ffad4b9ff2d54d78fa9b225f78a4b.tar.gz
SERVER-28620 Adorn all oplog writes with timestamps
These timestamps are now used to implement oplog visibility rules, in place of the current in-memory vector of uncommitted ops that the WiredTiger glue code currently uses. This change also introduces a TimestampedBSONObj class, which encapsulates a BSONObject with its associated write timestamp.
Diffstat (limited to 'src/mongo/db/repl/replication_coordinator_impl.h')
-rw-r--r--src/mongo/db/repl/replication_coordinator_impl.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/mongo/db/repl/replication_coordinator_impl.h b/src/mongo/db/repl/replication_coordinator_impl.h
index 55a5aa80d2e..2e9349f9d73 100644
--- a/src/mongo/db/repl/replication_coordinator_impl.h
+++ b/src/mongo/db/repl/replication_coordinator_impl.h
@@ -419,31 +419,6 @@ private:
using ScheduleFn = stdx::function<StatusWith<executor::TaskExecutor::CallbackHandle>(
const executor::TaskExecutor::CallbackFn& work)>;
- struct SnapshotInfo {
- OpTime opTime;
- SnapshotName name;
-
- bool operator==(const SnapshotInfo& other) const {
- return std::tie(opTime, name) == std::tie(other.opTime, other.name);
- }
- bool operator!=(const SnapshotInfo& other) const {
- return std::tie(opTime, name) != std::tie(other.opTime, other.name);
- }
- bool operator<(const SnapshotInfo& other) const {
- return std::tie(opTime, name) < std::tie(other.opTime, other.name);
- }
- bool operator<=(const SnapshotInfo& other) const {
- return std::tie(opTime, name) <= std::tie(other.opTime, other.name);
- }
- bool operator>(const SnapshotInfo& other) const {
- return std::tie(opTime, name) > std::tie(other.opTime, other.name);
- }
- bool operator>=(const SnapshotInfo& other) const {
- return std::tie(opTime, name) >= std::tie(other.opTime, other.name);
- }
- std::string toString() const;
- };
-
class LoseElectionGuardV1;
class LoseElectionDryRunGuardV1;