mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix(db-sync): stabilize checksum parity for e2ee graph init
This commit is contained in:
@@ -49,8 +49,7 @@
|
||||
|
||||
(defn update-local-sync-checksum!
|
||||
[repo tx-report]
|
||||
(when (and (worker-state/get-client-ops-conn repo)
|
||||
(not (sync-crypt/graph-e2ee? repo)))
|
||||
(when (worker-state/get-client-ops-conn repo)
|
||||
(client-op/update-local-checksum
|
||||
repo
|
||||
(sync-checksum/update-checksum (client-op/get-local-checksum repo) tx-report))))
|
||||
|
||||
@@ -120,8 +120,7 @@
|
||||
|
||||
(defn- verify-sync-checksum!
|
||||
[repo client local-tx remote-tx remote-checksum context]
|
||||
(when (and (not (sync-crypt/graph-e2ee? repo))
|
||||
(string? remote-checksum)
|
||||
(when (and (string? remote-checksum)
|
||||
(checksum-compare-ready? repo client local-tx remote-tx))
|
||||
(let [local-checksum (local-sync-checksum repo)]
|
||||
(when-not (= local-checksum remote-checksum)
|
||||
|
||||
Reference in New Issue
Block a user