mutgos / mutgos_server

MUTGOS, a modern MUD MUCK MUSH MOO MU* text game engine
MIT License
4 stars 2 forks source link

Need a database 'fsck' type support (or preventing corruption in the first place) #17

Open zelerin opened 5 years ago

zelerin commented 5 years ago

Currently, if the system crashes while Entities are waiting to be written to disk, those updates are lost. While sqlite won't let the file get corrupted, it may cause the references to be all messed up. To solve this, either 'fsck' type code needs to be written that re-generates all the references, or database updates need to be committed as a unit to prevent it from happening in the first place. Or maybe there's some other better way?