Remove MDRCache corresponding to a storage being unmounted from the list of MDRCache instances. BLD200410031800
authormmatula@netbeans.org
Fri, 01 Oct 2004 16:09:49 +0000
changeset 159612fb8007a857
parent 1595 1107e0aacd73
child 1597 556aed2bf3c4
Remove MDRCache corresponding to a storage being unmounted from the list of MDRCache instances.
mdr/src/org/netbeans/mdr/persistence/btreeimpl/btreestorage/BtreeDatabase.java
     1.1 --- a/mdr/src/org/netbeans/mdr/persistence/btreeimpl/btreestorage/BtreeDatabase.java	Fri Oct 01 16:02:08 2004 +0000
     1.2 +++ b/mdr/src/org/netbeans/mdr/persistence/btreeimpl/btreestorage/BtreeDatabase.java	Fri Oct 01 16:09:49 2004 +0000
     1.3 @@ -461,6 +461,7 @@
     1.4       */
     1.5      public void shutDown() throws StorageException {        
     1.6          synchronized (myStorage) {
     1.7 +            cache.shutDown();
     1.8              try {
     1.9                  fileCache.commit();            
    1.10              } catch (StorageException ex) {	    
    1.11 @@ -469,7 +470,7 @@
    1.12              } // catch
    1.13          }
    1.14      }
    1.15 -    
    1.16 +
    1.17      /** save all changes to disk without comitting
    1.18      */
    1.19      public void saveChanges() throws StorageException {