diff options
Diffstat (limited to 'src/mongo/db/traffic_reader.cpp')
-rw-r--r-- | src/mongo/db/traffic_reader.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/traffic_reader.cpp b/src/mongo/db/traffic_reader.cpp index 2b2dcc9a732..7ce7ddcb112 100644 --- a/src/mongo/db/traffic_reader.cpp +++ b/src/mongo/db/traffic_reader.cpp @@ -122,12 +122,12 @@ boost::optional<TrafficReaderPacket> readPacket(char* buf, int fd) { ConstDataRangeCursor cdr(buf, buf + len); // Read the packet - uassertStatusOK(cdr.skip<LittleEndian<uint32_t>>()); - uint64_t id = uassertStatusOK(cdr.readAndAdvance<LittleEndian<uint64_t>>()); - StringData local = uassertStatusOK(cdr.readAndAdvance<Terminated<'\0', StringData>>()); - StringData remote = uassertStatusOK(cdr.readAndAdvance<Terminated<'\0', StringData>>()); - uint64_t date = uassertStatusOK(cdr.readAndAdvance<LittleEndian<uint64_t>>()); - uint64_t order = uassertStatusOK(cdr.readAndAdvance<LittleEndian<uint64_t>>()); + cdr.skip<LittleEndian<uint32_t>>(); + uint64_t id = cdr.readAndAdvance<LittleEndian<uint64_t>>(); + StringData local = cdr.readAndAdvance<Terminated<'\0', StringData>>(); + StringData remote = cdr.readAndAdvance<Terminated<'\0', StringData>>(); + uint64_t date = cdr.readAndAdvance<LittleEndian<uint64_t>>(); + uint64_t order = cdr.readAndAdvance<LittleEndian<uint64_t>>(); MsgData::ConstView message(cdr.data()); return TrafficReaderPacket{ |