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

Revert "MCOL-5555 Add support for startreadonly command."

This reverts commit 441cd9d34f.
This commit is contained in:
Denis Khalikov
2023-12-19 15:36:43 +00:00
committed by Leonid Fedorov
parent 041eb2ec8a
commit 6315546557
11 changed files with 18 additions and 403 deletions

View File

@ -27,9 +27,8 @@
#pragma once
#include <map>
#include <condition_variable>
#include <unordered_set>
#include <boost/thread/mutex.hpp>
#include <boost/thread/condition_variable.hpp>
@ -40,6 +39,7 @@
#define EXPORT
namespace BRM
{
/** @brief Issues transaction IDs and keeps track of the current system-wide version ID.
@ -146,15 +146,6 @@ class SessionManagerServer
*/
EXPORT const TxnID newTxnID(const SID session, bool block = true, bool isDDL = false);
// Adds a new job into `active` cpimport job list and return id of that job.
EXPORT uint32_t newCpimportJob();
// Removes the given `jobId` from `active` cpimort job list.
EXPORT void finishCpimortJob(uint32_t jobId);
// Clears all active cpimport jobs.
EXPORT void clearAllCpimportJobs();
/** @brief Record that a transaction has been committed
*
* Record that a transaction has been committed.
@ -262,9 +253,6 @@ class SessionManagerServer
*/
EXPORT uint32_t getTxnCount();
EXPORT uint32_t getCpimportJobsCount();
private:
SessionManagerServer(const SessionManagerServer&);
SessionManagerServer& operator=(const SessionManagerServer&);
@ -289,12 +277,9 @@ class SessionManagerServer
boost::mutex mutex;
boost::condition_variable condvar; // used to synthesize a semaphore
uint32_t semValue;
std::unordered_set<uint32_t> activeCpimportJobs;
uint32_t cpimportJobId{0};
std::mutex cpimportMutex;
};
} // namespace BRM
#undef EXPORT