Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Flashcards are not allowed to be modified during data sync to avoid data overwriting https://github.com/siyuan-note/siyuan/issues/10167

Daniel43c6fabcdc31
diff --git a/kernel/model/flashcard.go b/kernel/model/flashcard.go
index b7e7ba9fad..bf1693aa19 100644
--- a/kernel/model/flashcard.go
+++ b/kernel/model/flashcard.go
@@ -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
}