mirror of
https://github.com/langgenius/dify.git
synced 2026-03-25 23:01:33 -04:00
- Added a check to prevent double acquisition of the DB migration lock, raising an error if an attempt is made to acquire it while already held. - Implemented logic to reuse the lock object if it has already been created, improving efficiency and clarity in lock management. - Reset the lock object to None upon release to ensure proper state management. (cherry picked from commit d4b102d3c8a473c4fd6409dba7c198289bb5f921)
7.2 KiB
7.2 KiB