Minor perf improvement - do not create empty btree db file as it is BLD200412071900
authorpflaska@netbeans.org
Tue, 07 Dec 2004 17:11:37 +0000
changeset 1639419573be59af
parent 1638 d327cf9ee2e2
child 1640 472cbf85bffb
Minor perf improvement - do not create empty btree db file as it is
immediately recreated because it is not valid mdr storage.
mdr/src/org/netbeans/mdr/storagemodel/MdrStorage.java
     1.1 --- a/mdr/src/org/netbeans/mdr/storagemodel/MdrStorage.java	Tue Dec 07 10:40:22 2004 +0000
     1.2 +++ b/mdr/src/org/netbeans/mdr/storagemodel/MdrStorage.java	Tue Dec 07 17:11:37 2004 +0000
     1.3 @@ -442,7 +442,7 @@
     1.4              // try to open the storage (if open fails, exception is thrown and program continues in catch block
     1.5  //            currentMdrStorage = this;
     1.6  //            currentStorage = storage;
     1.7 -            storage.open(true, this);
     1.8 +            storage.open(false, this);
     1.9  //            currentStorage = null;
    1.10  //            currentMdrStorage = null;
    1.11              storageId = storage.getStorageId();
    1.12 @@ -451,9 +451,6 @@
    1.13              // everything succeeded -> return true
    1.14              result = true;
    1.15          } catch (Exception e) {
    1.16 -            if (e instanceof StorageException) {
    1.17 -                Logger.getDefault().notify(Logger.INFORMATIONAL, e);
    1.18 -            }
    1.19              Logger.getDefault().log("Rebooting storage. Reason: " + e);
    1.20              // storage not found or corrupted -> create new one
    1.21              try {