diff options
author | Dan Pasette <dan@10gen.com> | 2015-02-19 07:24:08 -0500 |
---|---|---|
committer | Ramon Fernandez <ramon.fernandez@mongodb.com> | 2015-02-19 14:00:15 -0500 |
commit | 74aabd913f3cafb2fd3adbafb2e7ec3d5aa8597e (patch) | |
tree | 89bccea3dcaf7eb7494abffd83d5dc3f46b597ea | |
parent | eaed5ed84ced12f738264ca4645733a5c1db420b (diff) | |
download | mongo-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.cpp | 4 |
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 { |