Roxen.git/
server/
base_server/
fsgc.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2019-10-02
2019-10-02 12:54:15 by Jonas Walldén <jonasw@roxen.com>
8efa3ba8397dbd1ee42c5b5eef9fcfc239602612 (
7
lines) (+
6
/-
1
)
[
Show
|
Annotate
]
Branch:
7.0
Force the FSGarb to run with some regularity even if the purge threshold is
many weeks or months.
355:
this::quarantine = quarantine; }
-
::create(max_age/file_interval_factor, 0, max_age);
+
// If the max age is on the scale of months the file check interval
+
// will likely exceed typical server uptime (e.g. every 36 days if
+
// the stable time is 180 days). We cap this to a much lower number
+
// to ensure it's run regularly even if the server reboots frequently.
+
::create(
min(
max_age
, 24 * 3600)
/
file_interval_factor, 0, max_age);
// Workaround for too strict type-check in Pike 7.8. int flags = 3;