diff options
author | Benety Goh <benety@mongodb.com> | 2017-10-31 14:24:55 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2017-11-07 21:41:12 -0500 |
commit | 5ab490e943395019a08ed088290aa462d8e310ad (patch) | |
tree | 18d8387708605e0efd534eb09aa7d32ced724442 | |
parent | c5d53097eb9090e293410d6667187261e9ff09e7 (diff) | |
download | mongo-5ab490e943395019a08ed088290aa462d8e310ad.tar.gz |
SERVER-31356 remove unused OplogEntry constructors
-rw-r--r-- | src/mongo/db/repl/oplog_entry.cpp | 43 | ||||
-rw-r--r-- | src/mongo/db/repl/oplog_entry.h | 24 |
2 files changed, 0 insertions, 67 deletions
diff --git a/src/mongo/db/repl/oplog_entry.cpp b/src/mongo/db/repl/oplog_entry.cpp index e129eb47e6f..dcc24a1c114 100644 --- a/src/mongo/db/repl/oplog_entry.cpp +++ b/src/mongo/db/repl/oplog_entry.cpp @@ -188,49 +188,6 @@ OplogEntry::OplogEntry(OpTime opTime, preImageOpTime, postImageOpTime)) {} -OplogEntry::OplogEntry(OpTime opTime, - long long hash, - OpTypeEnum opType, - NamespaceString nss, - int version, - const BSONObj& oField, - const boost::optional<BSONObj>& o2Field) - : OplogEntry(opTime, // optime - hash, // hash - opType, // op type - nss, // namespace - boost::none, // uuid - boost::none, // fromMigrate - version, // version - oField, // o - o2Field, // o2 - {}, // sessionInfo - boost::none, // wall clock time - boost::none, // statement id - boost::none, // optime of previous write within same transaction - boost::none, // pre-image optime - boost::none) {} // post-image optime - -OplogEntry::OplogEntry(OpTime opTime, - long long hash, - OpTypeEnum opType, - NamespaceString nss, - int version, - const BSONObj& oField) - : OplogEntry(opTime, hash, opType, nss, version, oField, boost::none) {} - -OplogEntry::OplogEntry( - OpTime opTime, long long hash, OpTypeEnum opType, NamespaceString nss, const BSONObj& oField) - : OplogEntry(opTime, hash, opType, nss, OplogEntry::kOplogVersion, oField, boost::none) {} - -OplogEntry::OplogEntry(OpTime opTime, - long long hash, - OpTypeEnum opType, - NamespaceString nss, - const BSONObj& oField, - const boost::optional<BSONObj>& o2Field) - : OplogEntry(opTime, hash, opType, nss, OplogEntry::kOplogVersion, oField, o2Field) {} - bool OplogEntry::isCommand() const { return getOpType() == OpTypeEnum::kCommand; } diff --git a/src/mongo/db/repl/oplog_entry.h b/src/mongo/db/repl/oplog_entry.h index f43f43f9aba..985384e4ecf 100644 --- a/src/mongo/db/repl/oplog_entry.h +++ b/src/mongo/db/repl/oplog_entry.h @@ -78,30 +78,6 @@ public: const boost::optional<OpTime>& prevWriteOpTimeInTransaction, const boost::optional<OpTime>& preImageOpTime, const boost::optional<OpTime>& postImageOpTime); - OplogEntry(OpTime opTime, - long long hash, - OpTypeEnum opType, - NamespaceString nss, - int version, - const BSONObj& oField, - const boost::optional<BSONObj>& o2Field); - OplogEntry(OpTime opTime, - long long hash, - OpTypeEnum opType, - NamespaceString nss, - int version, - const BSONObj& oField); - OplogEntry(OpTime opTime, - long long hash, - OpTypeEnum opType, - NamespaceString nss, - const BSONObj& oField); - OplogEntry(OpTime opTime, - long long hash, - OpTypeEnum opType, - NamespaceString nss, - const BSONObj& oField, - const boost::optional<BSONObj>& o2Field); // DEPRECATED: This constructor can throw. Use static parse method instead. explicit OplogEntry(BSONObj raw); |