diff options
author | Daniel Gottlieb <daniel.gottlieb@mongodb.com> | 2020-03-16 15:08:25 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-17 19:40:02 +0000 |
commit | 10b9987d9f2bf37ff76b3fd2271e1585c124d587 (patch) | |
tree | 3caf57ce385bdb3a50ee26c449841b0b6016ca6c /src/mongo/db/namespace_string_test.cpp | |
parent | 759af0dcb8dd4e13fdcdb8a77907b6dabaf7101e (diff) | |
download | mongo-10b9987d9f2bf37ff76b3fd2271e1585c124d587.tar.gz |
SERVER-46641: Limit collection names to 255 characters.
Diffstat (limited to 'src/mongo/db/namespace_string_test.cpp')
-rw-r--r-- | src/mongo/db/namespace_string_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/namespace_string_test.cpp b/src/mongo/db/namespace_string_test.cpp index baba77e9855..b849284b99d 100644 --- a/src/mongo/db/namespace_string_test.cpp +++ b/src/mongo/db/namespace_string_test.cpp @@ -150,7 +150,7 @@ TEST(NamespaceStringTest, MakeDropPendingNamespace) { NamespaceString{"test.foo"}.makeDropPendingNamespace( repl::OpTime(Timestamp(Seconds(1234567), 8U), 9LL))); - std::string collName(8192, 't'); + std::string collName(NamespaceString::MaxNsCollectionLen, 't'); NamespaceString nss("test", collName); ASSERT_EQUALS(NamespaceString{"test.system.drop.1234567i8t9." + collName}, nss.makeDropPendingNamespace(repl::OpTime(Timestamp(Seconds(1234567), 8U), 9LL))); |