From 7e8566b8b8fd580336e8efbfb91ca812d705fab5 Mon Sep 17 00:00:00 2001 From: Jason Carey Date: Mon, 22 Feb 2016 19:36:02 -0500 Subject: SERVER-22801 (de)serialize for sorter le fixes --- src/mongo/db/record_id.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/record_id.h') diff --git a/src/mongo/db/record_id.h b/src/mongo/db/record_id.h index 1ebea7ee122..e0dbf038573 100644 --- a/src/mongo/db/record_id.h +++ b/src/mongo/db/record_id.h @@ -108,10 +108,10 @@ public: /// members for Sorter struct SorterDeserializeSettings {}; // unused void serializeForSorter(BufBuilder& buf) const { - buf.appendStruct(_repr); + buf.appendNum(static_cast(_repr)); } static RecordId deserializeForSorter(BufReader& buf, const SorterDeserializeSettings&) { - return RecordId(buf.read()); + return RecordId(buf.read>()); } int memUsageForSorter() const { return sizeof(RecordId); -- cgit v1.2.1