happyfish100 / fastdfs

FastDFS is an open source high performance distributed file system (DFS). It's major functions include: file storing, file syncing and file accessing, and design for high capacity and load balance. Wechat/Weixin public account (Chinese Language): fastdfs
GNU General Public License v3.0
8.91k stars 1.97k forks source link

fix: 多path的其中一个path存储超阈值时,store_path=0应该顺序写入,而不是每次都写第一个path #665

Closed niloay6 closed 9 months ago

niloay6 commented 9 months ago

storage.conf:

store_path_count=4

store_path0=/home/FastDFS0
store_path1=/home/FastDFS1
store_path2=/home/FastDFS2
store_path3=/home/FastDFS3

tracket.conf:

store_path=0

修复配置4个store_path时,当第二个path(store_path1)存储超过阈值,会重复在第一个path(store_path0)写入的问题; 即:store_path0 -> store_path2 -> store_path3,而不是一直是store_path0。