From 08dfdbda3c0a77530369027f9cb8397c55b3cf28 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 17 Dec 2024 12:09:05 +0100 Subject: [PATCH] Delete blob proof when associated blob doesn't exist anymore --- lib/eviction.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/eviction.js b/lib/eviction.js index b747ba99f..95f430cdf 100644 --- a/lib/eviction.js +++ b/lib/eviction.js @@ -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);