Skip to content

Instantly share code, notes, and snippets.

@JefClaes
Created December 4, 2013 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JefClaes/7783803 to your computer and use it in GitHub Desktop.
Save JefClaes/7783803 to your computer and use it in GitHub Desktop.
Hopefully you will not lose power too often.
We are told that the flush and fsync primitives are broken on some versions of Windows and Linux. This is unfortunate. It opens SQLite up to the possibility of database corruption following a power loss in the middle of a commit. However, there is nothing that SQLite can do to test for or remedy the situation. SQLite assumes that the operating system that it is running on works as advertised. If that is not quite the case, well then hopefully you will not lose power too often.
Source: http://www.sqlite.org/atomiccommit.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment