From dbf1283edc8d291c71059a42e0c26dcdcea43e94 Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Sat, 14 Oct 2023 13:24:41 +0300 Subject: [PATCH] bugfix allow nodes without status to be queried to resolve status --- src/MariaDB.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MariaDB.ts b/src/MariaDB.ts index 91c2d45..7dd72f1 100644 --- a/src/MariaDB.ts +++ b/src/MariaDB.ts @@ -338,7 +338,7 @@ class MariaDB const pool = this.#pool; if (nodeName) { - const available = this.#nodes.filter(n => n.status === 'synced'); + const available = this.#nodes.filter(n => n.status === 'synced' || !n.status); if (!available.length) throw new Error('No nodes available for query'); const node = this.#nodes.find(n => n.name === nodeName);