summaryrefslogtreecommitdiff
path: root/src/mongo/db/namespace_string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/namespace_string.cpp')
-rw-r--r--src/mongo/db/namespace_string.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/namespace_string.cpp b/src/mongo/db/namespace_string.cpp
index 37ffc965c08..566b23a2604 100644
--- a/src/mongo/db/namespace_string.cpp
+++ b/src/mongo/db/namespace_string.cpp
@@ -146,7 +146,7 @@ NamespaceString NamespaceString::makeDropPendingNamespace(const repl::OpTime& op
ss << db() << "." << dropPendingNSPrefix;
ss << opTime.getSecs() << "i" << opTime.getTimestamp().getInc() << "t" << opTime.getTerm();
ss << "." << coll();
- return NamespaceString(ss.stringData().substr(0, MaxNsCollectionLen));
+ return NamespaceString(ss.stringData());
}
StatusWith<repl::OpTime> NamespaceString::getDropPendingNamespaceOpTime() const {