]> gerrit.simantics Code Review - simantics/platform.git/commit
Hardening of DB index integrity
authorJussi Koskela <jussi.koskela@semantum.fi>
Fri, 10 Mar 2017 07:38:28 +0000 (09:38 +0200)
committerjsimomaa <jani.simomaa@gmail.com>
Fri, 28 Apr 2017 13:21:18 +0000 (16:21 +0300)
commit3bc4643ef39abce9162b098e12a19169030dc0bd
treea9c65b107b72946c0d8967a2c2d5bf25a3361e97
parent9da67402df63f89ffd2969e87fd140b17b744e47
Hardening of DB index integrity

Mark index dirty as early as possible on write operations (and sync to
disk). Clean index dirtiness indicator as last step when deleting the
index. Cache dirty statuses to write dirty files only once.

refs #7075

Change-Id: I1c8a6882270b5fbd53bc88249ba5f50c05a83b51
bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/DatabaseIndexing.java
bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/IndexedRelationsImpl.java
bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/internal/IndexChangedWriter.java [new file with mode: 0644]
bundles/org.simantics.utils/src/org/simantics/utils/FileUtils.java