浏览代码

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