Files
romm/backend/handler
nendo 86b6f45f75 fix(roms): stop a racing upload from undoing a folder conversion
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.
2026-08-31 13:43:37 +09:00
..
2025-12-07 12:19:13 -05:00