From 987e5b79304062308a5d304a57dabcce97654867 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Tue, 17 Oct 2006 00:08:26 +0000 Subject: More work on automatic triggers. --- src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (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 b885399..20ab89f 100644 --- a/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java +++ b/src/main/java/com/amazon/carbonado/repo/sleepycat/BDBStorage.java @@ -131,7 +131,7 @@ abstract class BDBStorage implements Storage, Storag mRepository = repository; mType = type; mRawSupport = new Support(repository, this); - mTriggerManager = new TriggerManager(type, repository.mTriggerFactories); + mTriggerManager = new TriggerManager(); try { // Ask if any lobs via static method first, to prevent stack // overflow that occurs when creating BDBStorage instances for @@ -466,6 +466,9 @@ abstract class BDBStorage implements Storage, Storag mPrimaryDatabase = primaryDatabase; mQueryEngine = new QueryEngine(getStorableType(), mRepository); + + // Don't install automatic triggers until we're completely ready. + mTriggerManager.addTriggers(getStorableType(), mRepository.mTriggerFactories); } protected S instantiate(byte[] key, byte[] value) throws FetchException { -- cgit v1.2.3