Skip to content

Commit

Permalink
fix: calculate s3-key length
Browse files Browse the repository at this point in the history
  • Loading branch information
RCmerci authored and tiensonqin committed Nov 4, 2022
1 parent e780272 commit fcb5d20
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/frontend/fs/sync.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -2338,9 +2338,9 @@
(comp
(filter
(fn [[path _]]
; 951 = (- 1024 36 36 1)
; 1024 - user-uuid - graph-uuid - '/'
(<= (count (get fnames-map path)) 951)))
; 950 = (- 1024 36 36 2)
; 1024 - length of 'user-uuid/graph-uuid/'
(<= (count (get fnames-map path)) 950)))
(map second))
local-files-meta-map))))

Expand Down

0 comments on commit fcb5d20

Please sign in to comment.