Branch: Tag:

2017-11-17

2017-11-17 10:19:58 by Anders Johansson <anders@roxen.com>

FSGC: Avoid using DefaultMonitor implementation [EP-329]

330:    }    }    +  constant DefaultMonitor = Monitor; +     protected void create(string modid, string path, int max_age,    int|void max_size, int|void max_files,    string|void quarantine)
365:    {    if (path == root) return;    GC_WERR("FSGC: Deleting stale file: %O\n", path); +  + #if 0 +  // If we ever use accelerated notifications again. +     // Override accelerated stable change notification.    if (st->mtime >= time(1) - stable_time) {    GC_WERR("FSGC: Keeping file: %O\n", path);
375:    m->check(); // Force an update().    return;    } + #endif    rm(path);    }