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

MCOL-5555 Add support for startreadonly command.

This patch adds support for `startreadonly` command which waits
until all active cpimport jobs are done and then puts controller node to readonly
mode.
This commit is contained in:
Denis Khalikov
2023-10-02 23:46:53 +03:00
committed by Leonid Fedorov
parent 2b20e1de25
commit 3fcb9b66f5
11 changed files with 403 additions and 18 deletions

View File

@ -753,6 +753,8 @@ class DBRM
/* SessionManager interface */
EXPORT const QueryContext verID();
EXPORT const QueryContext sysCatVerID();
EXPORT uint8_t newCpimportJob(uint32_t &jobId);
EXPORT void finishCpimportJob(uint32_t jobId);
EXPORT const TxnID newTxnID(const SessionManagerServer::SID session, bool block, bool isDDL = false);
EXPORT void committed(BRM::TxnID& txnid);
EXPORT void rolledback(BRM::TxnID& txnid);
@ -826,6 +828,8 @@ class DBRM
EXPORT int resume() DBRM_THROW;
EXPORT int forceReload() DBRM_THROW;
EXPORT int setReadOnly(bool b) DBRM_THROW;
EXPORT int startReadOnly() DBRM_THROW;
EXPORT int forceClearCpimportJobs() DBRM_THROW;
EXPORT int isReadWrite() throw();
EXPORT bool isEMEmpty() throw();