summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/key_string.cpp
diff options
context:
space:
mode:
authorJason Carey (hanumantmk) <jcarey@argv.me>2015-03-19 16:37:54 -0400
committerJason Carey (hanumantmk) <jcarey@argv.me>2015-04-14 14:32:49 -0400
commit67829601c0e4516f70a59140c8971f5111372b8b (patch)
tree34a85a1f43b16c5e29d47767315d5dd0d04cbf08 /src/mongo/db/storage/key_string.cpp
parent8bd99fa7bd4387abeb5f6ddf0907b36f67d9c702 (diff)
downloadmongo-67829601c0e4516f70a59140c8971f5111372b8b.tar.gz
SERVER-17629 Implemented Bounded Data View/Cursor
Implements DataRange and DataRangeCursor, bounded Status returning variants of DataView and DataCursor. Implements DataType::Handler<> to allow for specialization by type. * Endian specializations * BSONObj specialization Fix for endian conversions for floats and doubles to avoid some signaling bit patterns.
Diffstat (limited to 'src/mongo/db/storage/key_string.cpp')
-rw-r--r--src/mongo/db/storage/key_string.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/storage/key_string.cpp b/src/mongo/db/storage/key_string.cpp
index 2cd548aadf7..0df4a8d8096 100644
--- a/src/mongo/db/storage/key_string.cpp
+++ b/src/mongo/db/storage/key_string.cpp
@@ -181,7 +181,7 @@ namespace mongo {
template <typename T> T readType(BufReader* reader, bool inverted) {
// TODO for C++11 to static_assert that T is integral
- T t = ConstDataView(static_cast<const char*>(reader->skip(sizeof(T)))).readNative<T>();
+ T t = ConstDataView(static_cast<const char*>(reader->skip(sizeof(T)))).read<T>();
if (inverted)
return ~t;
return t;