]> gerrit.simantics Code Review - simantics/platform.git/commit
Hardening of DB index integrity 53/353/5
authorJussi Koskela <jussi.koskela@semantum.fi>
Fri, 10 Mar 2017 07:38:28 +0000 (09:38 +0200)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Mon, 20 Mar 2017 14:15:16 +0000 (16:15 +0200)
commit702195f31e8e94fc0e18172046b644723b0e9ea8
treeccc85bab439b58ff258b60ceb9f13af4eeb7d480
parent70ca62beff8528612a80952b65e909f58ebbc0fd
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