summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/key_string.h
diff options
context:
space:
mode:
authorseantao97 <seantao97@gmail.com>2018-07-12 15:47:31 -0400
committerSean Tao <sean.tao@10gen.com>2018-08-02 10:39:12 -0400
commit308fc1b550fd7343e9168b8d87e5a4065cd4afda (patch)
treefe5e385bfa572a51f0617af1b54dfc926eed832b /src/mongo/db/storage/key_string.h
parent684d7fce79006ba7d18ddf44e67a2f1aec6f8fbb (diff)
downloadmongo-308fc1b550fd7343e9168b8d87e5a4065cd4afda.tar.gz
SERVER-35947 Implement sorted data interface for the biggie storage engine.
Diffstat (limited to 'src/mongo/db/storage/key_string.h')
-rw-r--r--src/mongo/db/storage/key_string.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/storage/key_string.h b/src/mongo/db/storage/key_string.h
index a144a5096aa..31be4a833c6 100644
--- a/src/mongo/db/storage/key_string.h
+++ b/src/mongo/db/storage/key_string.h
@@ -324,6 +324,11 @@ public:
static RecordId decodeRecordIdAtEnd(const void* buf, size_t size);
/**
+ * Given a KeyString with a RecordId, returns the length of the section without the RecordId.
+ */
+ static size_t sizeWithoutRecordIdAtEnd(const void* bufferRaw, size_t bufSize);
+
+ /**
* Decodes a RecordId, consuming all bytes needed from reader.
*/
static RecordId decodeRecordId(BufReader* reader);