bugfix
allow nodes without status to be queried to resolve status
This commit is contained in:
parent
8a03f4e171
commit
dbf1283edc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user