mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Delete blob proof when associated blob doesn't exist anymore
This commit is contained in:
parent
a06d7068ee
commit
08dfdbda3c
@ -669,6 +669,7 @@ module.exports = function (Env, cb) {
|
||||
if (item.mtime > inactiveTime) { return void next(); }
|
||||
nThen(function (w) {
|
||||
blobs.size(item.blobId, w(function (err, size) {
|
||||
if (err && err === 'ENOENT') { return; } // XXX delete the proof
|
||||
if (err) {
|
||||
w.abort();
|
||||
return void Log.error("EVICT_BLOB_LIST_PROOFS_ERROR", err, next);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user