1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +03:00

Bigger better fix for access to R/W nodes only

This commit is contained in:
Serguey Zefirov
2025-05-05 21:00:51 +03:00
parent 560e0a8edd
commit bc0e57a6f0
3 changed files with 21 additions and 4 deletions

View File

@@ -310,6 +310,11 @@ void WEClients::Setup()
}
}
bool WEClient::isConectionReadonly(uint32_t connection)
{
return fPmConnections[connection] == nullptr;
}
int WEClients::Close()
{
makeBusy(false);
@@ -502,9 +507,9 @@ void WEClients::write(const messageqcpp::ByteStream& msg, uint32_t connection)
else
{
// new behavior: connection client is nullptr means it is read-only.
// ostringstream os;
// os << "Lost connection to WriteEngineServer on pm" << connection;
// throw runtime_error(os.str());
ostringstream os;
os << "Connection to readonly pm" << connection;
throw runtime_error(os.str());
}
}