icefo / pcnum

School project -- Creation of a semi-automated vhs digitaliser
2 stars 1 forks source link

nasty race condition in the backend #7

Closed icefo closed 8 years ago

icefo commented 9 years ago

weird race condition in the backend, the filename field of a decklink_to_raw is set to None when a raw_to_h264 job finish at the same time both raw files are not deleted.

icefo commented 9 years ago

check that every commit to the database is followed by a fsync, I think that the backend read a value that wasn't committed yet so it returned None and messed up everything.

icefo commented 8 years ago

Issue was fixed by adding fsync keywords with each database commit