-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix hang during rename-and-move in Zotero 6 (#594)
Resulting in not all annotations being transferred and the old attachment not being deleted Regression after zotero/zotero@734057ff9b, which added a transaction requirement to `Zotero.Items.moveChildItems()` but tried to preserve backwards compatibility with ZotFile. Unfortunately it had a bug, and a race condition with another transacation during the process results in a hang anyway if `moveChildItems()` isn't called in a transaction, so just change ZotFile to follow the new requirement. This also fixes `saveTx()` being called without an await. Fixes #593
- Loading branch information
Showing
1 changed file
with
14 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters