diff options
author | Eliot Horowitz <eliot@10gen.com> | 2013-11-06 17:55:59 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2013-11-07 09:14:29 -0500 |
commit | 96e763793b5e9b1f08ac00de37b095466d846981 (patch) | |
tree | 35181cd5c8ffdcc23645c8cba5a67cb5365cba64 /src/mongo/db/ops/delete.cpp | |
parent | 63fc8dcbb67b2dd7773b3f189c4eb0c32b649943 (diff) | |
download | mongo-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.cpp | 4 |
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 |