]> gerrit.simantics Code Review - simantics/platform.git/commit
Fixed bad bug related to AcornBackupProvider
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Fri, 5 May 2017 13:59:12 +0000 (16:59 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 11 May 2017 20:16:49 +0000 (23:16 +0300)
commita02a5904a09f9bc2cf6477f0dc0552de2abe68ed
tree7fd333eb892a97a0ead68ce046970960fa7c65b1
parent76f924bb5326ec040e8a7d371dc44d06576f2465
Fixed bad bug related to AcornBackupProvider

AcornBackupProvider was invoking GraphClientImpl2.makeSnapshot with true
parameter which caused the invocation to write the main.state file when
backups were made which was totally unintentional. The main.state file
is now only written only when the database session is shut down, i.e.
not at all in ClusterManager.makeSnapshot.

Also includes robustness fixes for Acorn database directory locking by
using the Java NIO API for atomic existence testing and creation of the
lock file.

refs #7186

Change-Id: Id668528f8aea789945a4ae3a212d14b07554ba0d
(cherry picked from commit 2aa77c56ec691aad39d1909bfbe4aff101e988fb)
bundles/org.simantics.acorn/src/org/simantics/acorn/AcornManagement.java
bundles/org.simantics.acorn/src/org/simantics/acorn/ClusterManager.java
bundles/org.simantics.acorn/src/org/simantics/acorn/GraphClientImpl2.java
bundles/org.simantics.acorn/src/org/simantics/acorn/internal/AcornDatabase.java