Delete blob proof when associated blob doesn't exist anymore

This commit is contained in:
yflory 2024-12-17 12:09:05 +01:00
parent a06d7068ee
commit 08dfdbda3c

View File

@ -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);