diff options
author | Benety Goh <benety@mongodb.com> | 2017-10-30 15:49:49 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2018-01-16 13:11:50 -0500 |
commit | 1378f8ec42068913c5bdc5927bbe86d5aed08814 (patch) | |
tree | 4f979a14496d8953868c39df7291dc9e6434a0b3 /src/mongo/db/repl/oplog_entry.cpp | |
parent | b5ebe8a5492c4f5e33970c0f885b9ac51460b9dc (diff) | |
download | mongo-1378f8ec42068913c5bdc5927bbe86d5aed08814.tar.gz |
SERVER-29200 add OplogEntry::getRawObjSizeBytes()
remove references to OplogEntry::raw from SyncTail::OpQueue and InitialSyncer
Diffstat (limited to 'src/mongo/db/repl/oplog_entry.cpp')
-rw-r--r-- | src/mongo/db/repl/oplog_entry.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/repl/oplog_entry.cpp b/src/mongo/db/repl/oplog_entry.cpp index dcc24a1c114..f9f4a11896f 100644 --- a/src/mongo/db/repl/oplog_entry.cpp +++ b/src/mongo/db/repl/oplog_entry.cpp @@ -220,6 +220,10 @@ OplogEntry::CommandType OplogEntry::getCommandType() const { return _commandType; } +int OplogEntry::getRawObjSizeBytes() const { + return raw.objsize(); +} + OpTime OplogEntry::getOpTime() const { long long term = OpTime::kUninitializedTerm; if (getTerm()) { |