diff options
Diffstat (limited to 'src/main/java/com/amazon/carbonado/repo/sleepycat')
-rw-r--r-- | src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java index 1733167..0d1b92d 100644 --- a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java +++ b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java @@ -187,7 +187,7 @@ abstract class BDBStorage<Txn, S extends Storable> implements Storage<S>, Storag try {
Cursor<S> cursor = query().fetch();
if (!cursor.hasNext()) {
- break;
+ return;
}
int count = 0;
do {
@@ -199,8 +199,6 @@ abstract class BDBStorage<Txn, S extends Storable> implements Storage<S>, Storag } finally {
txn.exit();
}
-
- return;
}
}
|