Skip to content

Commit ca5ed31

Browse files
GWlodarekevergreen
authored andcommitted
SERVER-43946 Converting BinData of type ByteArrayDeprecated from KeyString->BSON->KeyString should produce identical KeyStrings
1 parent 0b80f48 commit ca5ed31

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/mongo/db/storage/key_string_test.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,10 @@ TEST_F(KeyStringBuilderTest, Simple1) {
306306
} \
307307
} while (0)
308308

309+
TEST_F(KeyStringBuilderTest, DeprecatedBinData) {
310+
ROUNDTRIP(version, BSON("" << BSONBinData(nullptr, 0, ByteArrayDeprecated)));
311+
}
312+
309313
TEST_F(KeyStringBuilderTest, ActualBytesDouble) {
310314
// just one test like this for utter sanity
311315

0 commit comments

Comments
 (0)