diff options
author | Brian S. O'Neill <bronee@gmail.com> | 2009-08-03 22:58:28 +0000 |
---|---|---|
committer | Brian S. O'Neill <bronee@gmail.com> | 2009-08-03 22:58:28 +0000 |
commit | 52e371deb5def5513d6725553d130b5ba5d4248b (patch) | |
tree | ea1a85478568651aad19709cd429450d3eab6566 /src/main/java | |
parent | e85d59d3ec0839617a2c4b394301dc6c3c4e31b4 (diff) |
Ensure truncate when using single file is limited to one type.
Diffstat (limited to 'src/main/java')
-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;
}
}
|