summaryrefslogtreecommitdiff
path: root/src/mongo/db/ops/delete.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2013-11-06 17:55:59 -0500
committerEliot Horowitz <eliot@10gen.com>2013-11-07 09:14:29 -0500
commit96e763793b5e9b1f08ac00de37b095466d846981 (patch)
tree35181cd5c8ffdcc23645c8cba5a67cb5365cba64 /src/mongo/db/ops/delete.cpp
parent63fc8dcbb67b2dd7773b3f189c4eb0c32b649943 (diff)
downloadmongo-96e763793b5e9b1f08ac00de37b095466d846981.tar.gz
better logging when trying to delete from capped collection
Diffstat (limited to 'src/mongo/db/ops/delete.cpp')
-rw-r--r--src/mongo/db/ops/delete.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/db/ops/delete.cpp b/src/mongo/db/ops/delete.cpp
index cdc9bf34dd5..1fee8e820b9 100644
--- a/src/mongo/db/ops/delete.cpp
+++ b/src/mongo/db/ops/delete.cpp
@@ -73,7 +73,9 @@ namespace mongo {
if (NULL == d) {
return 0;
}
- uassert(10101, "can't remove from a capped collection", !d->isCapped());
+ uassert(10101,
+ str::stream() << "can't remove from a capped collection: " << ns,
+ !d->isCapped());
}
string nsForLogOp = ns.toString(); // XXX-ERH