You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-08 14:22:09 +03:00
MCOL-4347: catch exceptions during smcat/smls/smput/smrm on IOC::get()
This commit is contained in:
@@ -54,14 +54,21 @@ bool SMOnline()
|
||||
|
||||
void rmOffline(int argCount, const char **args, const char *prefix, uint prefixlen)
|
||||
{
|
||||
boost::scoped_ptr<IOCoordinator> ioc(IOCoordinator::get());
|
||||
char buf[16384];
|
||||
strncpy(buf, prefix, prefixlen);
|
||||
|
||||
for (int i = 1; i < argCount; i++)
|
||||
try
|
||||
{
|
||||
memcpy(&buf[prefixlen], args[i], min(16383 - prefixlen, strlen(args[i])) + 1);
|
||||
ioc->unlink(buf);
|
||||
boost::scoped_ptr<IOCoordinator> ioc(IOCoordinator::get());
|
||||
char buf[16384];
|
||||
strncpy(buf, prefix, prefixlen);
|
||||
|
||||
for (int i = 1; i < argCount; i++)
|
||||
{
|
||||
memcpy(&buf[prefixlen], args[i], min(16383 - prefixlen, strlen(args[i])) + 1);
|
||||
ioc->unlink(buf);
|
||||
}
|
||||
}
|
||||
catch (exception &e)
|
||||
{
|
||||
cerr << "smrm rmOffline FAIL: " << e.what() << endl;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user