From 52e371deb5def5513d6725553d130b5ba5d4248b Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Mon, 3 Aug 2009 22:58:28 +0000 Subject: Ensure truncate when using single file is limited to one type. --- src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/main') 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 implements Storage, Storag try { Cursor cursor = query().fetch(); if (!cursor.hasNext()) { - break; + return; } int count = 0; do { @@ -199,8 +199,6 @@ abstract class BDBStorage implements Storage, Storag } finally { txn.exit(); } - - return; } } -- cgit v1.2.3