From 19aaaba3f8ec22347a682dadb2c35900d1a82051 Mon Sep 17 00:00:00 2001 From: evlist Date: Mon, 13 Feb 2023 10:02:28 +0100 Subject: [PATCH] Breaking after 10000 purges to give a chance to delete _local/purges. --- src/db-admin/health-legacy.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/db-admin/health-legacy.ts b/src/db-admin/health-legacy.ts index c4099a6..d408a72 100644 --- a/src/db-admin/health-legacy.ts +++ b/src/db-admin/health-legacy.ts @@ -269,6 +269,9 @@ export const watchDbLegacy = async () => { doc, }); } + if (i === 10000) { + break; + } } } await sleep(60000);