1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

feat(plugin): All InnoDB queries are pushed down to Columnstore if columnstore_innodb_queries_uses_mcs = ON in the configuration before server start

This commit is contained in:
drrtuy
2025-05-19 18:42:23 +00:00
parent 11e5e481ab
commit 9038f0df09
4 changed files with 61 additions and 36 deletions

View File

@ -96,6 +96,14 @@ int LibMySQL::init(const char* h, unsigned int p, const char* u, const char* w,
return ret;
}
// Disable Select Handler to avoid recursive SH execution path for CES.
static const std::string disableSelectHandler = "SET SESSION columnstore_select_handler = OFF";
if (mysql_real_query(fCon, disableSelectHandler.c_str(), disableSelectHandler.length()) != 0)
{
fErrStr = "fatal error setting columnstore_select_handler=OFF in libmysql_client lib";
ret = -1;
return ret;
}
return ret;
}