소스 검색

fix: calculate s3-key length

rcmerci 3 년 전
부모
커밋
fcb5d206b2
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      src/main/frontend/fs/sync.cljs

+ 3 - 3
src/main/frontend/fs/sync.cljs

@@ -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))))