Skip to content

Commit

Permalink
Fixes temporal-upsert for persistent-set.
Browse files Browse the repository at this point in the history
  • Loading branch information
grischoun committed Jul 30, 2020
1 parent 058c59c commit b39e278
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/datahike/index/persistent_set.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
(-> (or (when-let [old (first (-slice set
(dd/datom (.-e datom) (.-a datom) nil tx0)
(dd/datom (.-e datom) (.-a datom) nil txmax)))]
;; insert the retracted version of 'old'
(-insert set (dd/datom (.-e old) (.-a old) (.-v old) (.-tx old) false) index-type))
(set/conj set (dd/datom (.-e old) (.-a old) (.-v old) (.-tx old) false)
(index-type->cmp-quick index-type)))
set)
(set/conj datom (index-type->cmp-quick index-type))))

0 comments on commit b39e278

Please sign in to comment.