mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-05 16:28:49 +01:00
🎨 Flashcards are not allowed to be modified during data sync to avoid data overwriting https://github.com/siyuan-note/siyuan/issues/10167
This commit is contained in:
parent
0d21e127db
commit
43c6fabcdc
1 changed files with 2 additions and 2 deletions
|
|
@ -641,7 +641,7 @@ func (tx *Transaction) doRemoveFlashcards(operation *Operation) (ret *TxErr) {
|
|||
deckLock.Lock()
|
||||
defer deckLock.Unlock()
|
||||
|
||||
if syncingStorages.Load() {
|
||||
if isSyncing.Load() {
|
||||
ret = &TxErr{code: TxErrCodeDataIsSyncing}
|
||||
return
|
||||
}
|
||||
|
|
@ -753,7 +753,7 @@ func (tx *Transaction) doAddFlashcards(operation *Operation) (ret *TxErr) {
|
|||
deckLock.Lock()
|
||||
defer deckLock.Unlock()
|
||||
|
||||
if syncingStorages.Load() {
|
||||
if isSyncing.Load() {
|
||||
ret = &TxErr{code: TxErrCodeDataIsSyncing}
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue