summaryrefslogtreecommitdiff
path: root/src/main/java/com/amazon/carbonado/repo
diff options
context:
space:
mode:
authorBrian S. O'Neill <bronee@gmail.com>2009-07-25 17:47:01 +0000
committerBrian S. O'Neill <bronee@gmail.com>2009-07-25 17:47:01 +0000
commit4a25366df4303bebdbd771dcec202e8368fdb61f (patch)
tree1c4b8bf7c9d8789a333242d1bb2f04f10ea30467 /src/main/java/com/amazon/carbonado/repo
parentddad54db7b38b9b919ef59dc988c1b2194fa184c (diff)
Make cursors more resilient against concurrent close, preventing NoSuchElementException from being thrown inappropriately.
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo')
-rw-r--r--src/main/java/com/amazon/carbonado/repo/indexed/IndexedCursor.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/indexed/IndexedCursor.java b/src/main/java/com/amazon/carbonado/repo/indexed/IndexedCursor.java
index de105cc..872b5b4 100644
--- a/src/main/java/com/amazon/carbonado/repo/indexed/IndexedCursor.java
+++ b/src/main/java/com/amazon/carbonado/repo/indexed/IndexedCursor.java
@@ -152,6 +152,7 @@ class IndexedCursor<S extends Storable> extends AbstractCursor<S> {
}
}
}
+ } catch (NoSuchElementException e) {
} catch (FetchException e) {
try {
close();