1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

feat(MCOL-6082) Cluster with read-only nodes should correctly work with DML

This patch changes logic from counting all nodes to counting only
read-write nodes when messaging about DML operations.
This commit is contained in:
Serguey Zefirov
2025-06-30 14:27:26 +03:00
parent 37a626eed5
commit 2753743762
3 changed files with 40 additions and 1 deletions

View File

@ -114,6 +114,18 @@ class WEClients
return pmCount;
}
uint32_t getRWConnectionsCount()
{
uint32_t count = 0;
for (uint32_t i = 0; i < fPmConnections.size(); i++)
{
count += fPmConnections[i] != nullptr;
}
return count;
}
bool isConnectionReadonly(uint32_t connection);
private:
WEClients(const WEClients& weClient);
WEClients& operator=(const WEClients& weClient);