From 671c41cb1a3027854939970cf21536981bebbb5e Mon Sep 17 00:00:00 2001 From: liuyi Date: Wed, 11 Dec 2024 17:59:59 +0800 Subject: [PATCH] fix(server): should drop blob steam if not used (#9103) --- packages/backend/server/src/core/storage/wrappers/blob.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/backend/server/src/core/storage/wrappers/blob.ts b/packages/backend/server/src/core/storage/wrappers/blob.ts index 38b63df950ce8..edc4b685ab65f 100644 --- a/packages/backend/server/src/core/storage/wrappers/blob.ts +++ b/packages/backend/server/src/core/storage/wrappers/blob.ts @@ -144,6 +144,7 @@ export class WorkspaceBlobStorage { if (!meta) { const blob = await this.get(workspaceId, key); meta = blob.metadata; + blob.body?.destroy(); } if (meta) {