File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 401401 :skip-validate-db? true }))))
402402
403403(defn- <create-or-open-db!
404- [repo {:keys [config datoms sync-download-graph? remote-graph? ] :as opts}]
404+ [repo {:keys [config datoms sync-download-graph?] :as opts}]
405405 (when-not (worker-state/get-sqlite-conn repo)
406406 (p/let [[db search-db client-ops-db :as dbs] (get-dbs repo)
407407 storage (new-sqlite-storage db)]
446446 (when-not @*publishing?
447447 (client-op/ensure-sqlite-schema! client-ops-db))
448448 (ensure-client-ops-cleanup-timer! repo)
449+ (when (nil? (client-op/get-local-tx repo))
450+ (client-op/update-local-tx repo 0 ))
449451 (let [initial-tx-report (when-not (or initial-data-exists?
450452 (seq datoms)
451453 sync-download-graph?)
459461 (gc-sqlite-dbs! db client-ops-db conn {})
460462 (maybe-run-recycle-gc! conn))
461463
462- (when remote-graph?
463- (client-op/update-local-tx repo 0 ))
464-
465464 (when initial-tx-report
466465 (db-sync/handle-local-tx! repo initial-tx-report))
467466
You can’t perform that action at this time.
0 commit comments