summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Pasette <dan@10gen.com>2015-02-19 07:24:08 -0500
committerRamon Fernandez <ramon.fernandez@mongodb.com>2015-02-19 14:00:15 -0500
commit74aabd913f3cafb2fd3adbafb2e7ec3d5aa8597e (patch)
tree89bccea3dcaf7eb7494abffd83d5dc3f46b597ea
parenteaed5ed84ced12f738264ca4645733a5c1db420b (diff)
downloadmongo-74aabd913f3cafb2fd3adbafb2e7ec3d5aa8597e.tar.gz
SERVER-17141 Cope with WT_NOTFOUND from WT_SESSION::truncate
(cherry picked from commit 4ca4224dae91ec067a38cd552b3b8c50999d7707)
-rw-r--r--src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp
index 61c908b387b..90a10e31b38 100644
--- a/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp
+++ b/src/mongo/db/storage/wiredtiger/wiredtiger_record_store.cpp
@@ -509,9 +509,9 @@ namespace {
invariantWTOK(ret);
ret = session->truncate(session, NULL, start, c, NULL);
- if (ret == ENOENT) {
+ if (ret == ENOENT || ret == WT_NOTFOUND) {
// TODO we should remove this case once SERVER-17141 is resolved
- log() << "Got ENOENT truncating capped collection. Will try again later.";
+ log() << "Soft failure truncating capped collection. Will try again later.";
docsRemoved = 0;
}
else {