From c8dd302fe527f6beb0901ccecfe8e07acb546021 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Mon, 26 Oct 2009 18:46:59 +0000 Subject: Pass Storable to RawSupport when loading and deleting. --- src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/java/com/amazon/carbonado/repo/sleepycat') 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 0d1b92d..4f1ff29 100644 --- a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java +++ b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java @@ -279,7 +279,7 @@ abstract class BDBStorage implements Storage, Storag throws FetchException { byte[] key = mStorableCodec.encodePrimaryKey(identityValues); - byte[] value = mRawSupport.tryLoad(key); + byte[] value = mRawSupport.tryLoad(null, key); if (value == null) { return EmptyCursor.the(); } @@ -1033,7 +1033,7 @@ abstract class BDBStorage implements Storage, Storag return mProperties.containsKey(name); } - public byte[] tryLoad(byte[] key) throws FetchException { + public byte[] tryLoad(S storable, byte[] key) throws FetchException { TransactionScope scope = mStorage.localTransactionScope(); byte[] result; // Lock out shutdown task. @@ -1096,7 +1096,7 @@ abstract class BDBStorage implements Storage, Storag } } - public boolean tryDelete(byte[] key) throws PersistException { + public boolean tryDelete(S storable, byte[] key) throws PersistException { TransactionScope scope = mStorage.localTransactionScope(); // Lock out shutdown task. scope.getLock().lock(); -- cgit v1.2.3