mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-11-30 20:06:52 -05:00
Move maintainence thread func take u64 rather than int
signed rollover is UB
This commit is contained in:
parent
78e60fb07b
commit
b42e0bc714
3 changed files with 8 additions and 6 deletions
|
|
@ -3674,19 +3674,19 @@ fuse_gc1()
|
|||
void
|
||||
fuse_populate_maintenance_thread(struct fuse *f_)
|
||||
{
|
||||
MaintenanceThread::push_job([=](int count_)
|
||||
MaintenanceThread::push_job([=](u64 count_)
|
||||
{
|
||||
if(remember_nodes())
|
||||
fuse_prune_remembered_nodes();
|
||||
});
|
||||
|
||||
MaintenanceThread::push_job([](int count_)
|
||||
MaintenanceThread::push_job([](u64 count_)
|
||||
{
|
||||
if((count_ % 15) == 0)
|
||||
fuse_gc1();
|
||||
});
|
||||
|
||||
MaintenanceThread::push_job([=](int count_)
|
||||
MaintenanceThread::push_job([=](u64 count_)
|
||||
{
|
||||
if(fuse_cfg.debug)
|
||||
metrics_log_nodes_info_to_tmp_dir(f_);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue