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 /src/mongo/db/repl/oplog_entry.cpp | |
parent | c5d53097eb9090e293410d6667187261e9ff09e7 (diff) | |
download | mongo-5ab490e943395019a08ed088290aa462d8e310ad.tar.gz |
SERVER-31356 remove unused OplogEntry constructors
Diffstat (limited to 'src/mongo/db/repl/oplog_entry.cpp')
-rw-r--r-- | src/mongo/db/repl/oplog_entry.cpp | 43 |
1 files changed, 0 insertions, 43 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; } |