mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 03:36:37 +02:00
✨ Reduce lock contention on uploading file object thumbnail
This commit is contained in:
parent
4dacba6836
commit
56ba32b66d
2 changed files with 44 additions and 49 deletions
|
@ -1158,7 +1158,7 @@
|
|||
;; check that the unknown frame thumbnail is deleted
|
||||
(let [rows (th/db-query :file-tagged-object-thumbnail {:file-id (:id file)})]
|
||||
(t/is (= 2 (count rows)))
|
||||
(t/is (= 1 (count (remove (comp some? :deleted-at) rows)))))
|
||||
(t/is (= 1 (count (remove :deleted-at rows)))))
|
||||
|
||||
(let [res (th/run-task! :objects-gc {:min-age 0})]
|
||||
(t/is (= 3 (:processed res))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue