Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trunk文件无法删除的问题 #25

Open
GoogleCodeExporter opened this issue Oct 8, 2015 · 1 comment
Open

trunk文件无法删除的问题 #25

GoogleCodeExporter opened this issue Oct 8, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

你好,我使用的v3.04版本,我因为是存储海量的小文件,所以
开启了trunk功能,参数配置如下:
use_trunk_file = false
slot_min_size = 256
slot_max_size = 16MB
trunk_file_size = 64MB
我上传文件,下载文件,删除每个上传的文件,都没有任何��
�题。
但是我把上传的文件全部删除完后,发现服务器上的trunk文件
无法删除。依然占用着磁盘空间。
[root@hadoop 00]# ls
000001  000007  000013  000019  000025  000031  000037  000043  000049  000055
000002  000008  000014  000020  000026  000032  000038  000044  000050  000056
000003  000009  000015  000021  000027  000033  000039  000045  000051
请问作者,这些trunk文件用啥接口可以删除。我认为这是fastdf
s的一个BUG,理论上我将trunk文件中保存的小文件全部删除完��
�后,fastdfs应该自动清除trunk文件。

Original issue reported on code.google.com by yangyuc...@163.com on 15 Dec 2011 at 9:30

@GoogleCodeExporter
Copy link
Author

只要trunk file有可用空间,这些空间是可以得到利用的。
下次分配空间时,就会优先分配这些空闲的空间。
要删除全部空闲的trunk 
file,逻辑相对比较复杂,实际意义也不大,暂时不打算支持�
��

Original comment by happyfis...@gmail.com on 23 Dec 2011 at 3:08

  • Changed state: Accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant