StanfordHCI / termite

(development moved to new repos)
BSD 3-Clause "New" or "Revised" License
115 stars 36 forks source link

Add synchronized file/database access on the server #7

Closed jcchuang closed 11 years ago

jcchuang commented 11 years ago

At the moment, states on the server are saved as flat JSON files. This is convenient for now, but runs the risk that if two setEntry.py calls are made at the same time, we'll have two threads writing to the same file, potentially corrupting the data. Changes here involve converting file read/write calls to SQLite read/write calls, and ensuring that the calls are synchronized.

To be completed after issues #10 and #11.

jcchuang commented 11 years ago

Completed in 67354b5.