From 2e0261a28fc78379a0394ee5925d409ae8988af9 Mon Sep 17 00:00:00 2001 From: Jordi Serra Torrens Date: Thu, 27 May 2021 14:43:48 +0000 Subject: SERVER-55557 Range deletion of aborted migration can fail after a refine shard key --- src/mongo/db/keypattern.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mongo/db/keypattern.cpp') diff --git a/src/mongo/db/keypattern.cpp b/src/mongo/db/keypattern.cpp index bba2f3424e0..8e91e561c01 100644 --- a/src/mongo/db/keypattern.cpp +++ b/src/mongo/db/keypattern.cpp @@ -79,7 +79,7 @@ BSONObj KeyPattern::extendRangeBound(const BSONObj& bound, bool makeUpperInclusi BSONObjIterator pat(_pattern); while (src.more()) { - massert(16649, + massert(ErrorCodes::KeyPatternShorterThanBound, str::stream() << "keyPattern " << _pattern << " shorter than bound " << bound, pat.more()); BSONElement srcElt = src.next(); -- cgit v1.2.1