mirror of https://github.com/xwiki-labs/cryptpad
Use ctime to detect deletable archived blobs
This commit is contained in:
parent
b22441446c
commit
467e8ee7fe
|
@ -250,7 +250,7 @@ var evictArchived = function (Env, cb) {
|
|||
Log.error("EVICT_BLOB_LIST_ARCHIVED_PROOF_ERROR", err);
|
||||
return void next();
|
||||
}
|
||||
if (item && item.mtime > retentionTime) { return void next(); }
|
||||
if (item && item.ctime > retentionTime) { return void next(); }
|
||||
if (Env.DRY_RUN) {
|
||||
removed++;
|
||||
return void Log.info("EVICT_ARCHIVED_BLOB_PROOF_DRY_RUN", item, next);
|
||||
|
@ -281,7 +281,7 @@ var evictArchived = function (Env, cb) {
|
|||
Log.error("EVICT_BLOB_LIST_ARCHIVED_BLOBS_ERROR", err);
|
||||
return void next();
|
||||
}
|
||||
if (item && item.mtime > retentionTime) { return void next(); }
|
||||
if (item && item.ctime > retentionTime) { return void next(); }
|
||||
if (Env.DRY_RUN) {
|
||||
removed++;
|
||||
return void Log.info("EVICT_ARCHIVED_BLOB_DRY_RUN", item, next);
|
||||
|
|
Loading…
Reference in New Issue