allow nodes without status to be queried to resolve status
This commit is contained in:
Erik 2023-10-14 13:24:41 +03:00
parent 8a03f4e171
commit dbf1283edc

View File

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