summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/resume_token.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/resume_token.cpp')
-rw-r--r--src/mongo/db/pipeline/resume_token.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/pipeline/resume_token.cpp b/src/mongo/db/pipeline/resume_token.cpp
index e602379dd0c..ded14a8be02 100644
--- a/src/mongo/db/pipeline/resume_token.cpp
+++ b/src/mongo/db/pipeline/resume_token.cpp
@@ -169,10 +169,10 @@ ResumeTokenData ResumeToken::getData() const {
// We validate the type at parse time.
MONGO_UNREACHABLE;
}
- auto internalBson = KeyString::toBson(static_cast<const char*>(keyStringBinData.data),
- keyStringBinData.length,
- Ordering::make(BSONObj()),
- typeBits);
+ auto internalBson = KeyString::toBsonSafe(static_cast<const char*>(keyStringBinData.data),
+ keyStringBinData.length,
+ Ordering::make(BSONObj()),
+ typeBits);
BSONObjIterator i(internalBson);
ResumeTokenData result;