]> git.mxchange.org Git - flightgear.git/commit
Revised cache transaction handling.
authorJames Turner <jmt@Bishop.local>
Sun, 23 Dec 2012 23:32:53 +0000 (23:32 +0000)
committerJames Turner <jmt@Bishop.local>
Sun, 23 Dec 2012 23:32:53 +0000 (23:32 +0000)
commit41481967f127cc97e6b5569925bc2b90570ae86d
tree94c7438ba49d921f022b2062e5d8b49e2d1edbcd
parent3c6fbffdf24a387d13a026891fe9f1edb940d6d4
Revised cache transaction handling.

Use a RAII object to manage cache transactions, and reset queries immediately after they are done, to avoid auto-commit transactions lasting long periods of time. Re-write the commit and step logic to handle SQLITE_BUSY, with progressively increasing waits when there is DB contention (multiple processes accessing the DB).
src/Airports/gnnode.cxx
src/Airports/simple.cxx
src/Airports/xmlloader.cxx
src/Navaids/NavDataCache.cxx
src/Navaids/NavDataCache.hxx