mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 01:58:41 +01:00
Uploading several files fires a request per file, and each one promotes the same single-file ROM. Both read it as single-file, both clear the collision check, then one moves the ROM into the new folder and the other finds nothing at the old path. Its rollback assumed the file at the destination was its own and moved it back out, leaving the ROM beside the folder while the database recorded the conversion. Promotions for a ROM now take a lock and re-read it, so the second request sees a folder ROM and returns instead of racing.