You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-4330 dev Refresh shared memory
If the plugin is restarted after the system is running, it's possible to have stale references to shared memory. This patch deletes those references so the next time they're used, just-in-time initialization will get the latest.
This commit is contained in:
@ -104,9 +104,16 @@ class DBRM
|
||||
public:
|
||||
// The param noBRMFcns suppresses init of the ExtentMap, VSS, VBBM, and CopyLocks.
|
||||
// It can speed up init if the caller only needs the other structures.
|
||||
EXPORT DBRM(bool noBRMFcns = false) throw();
|
||||
EXPORT ~DBRM() throw();
|
||||
EXPORT DBRM(bool noBRMFcns = false);
|
||||
EXPORT ~DBRM();
|
||||
|
||||
EXPORT static void refreshShm()
|
||||
{
|
||||
MasterSegmentTableImpl::refreshShm();
|
||||
ExtentMapImpl::refreshShm();
|
||||
FreeListImpl::refreshShm();
|
||||
}
|
||||
|
||||
// @bug 1055+ - Added functions below for multiple files per OID enhancement.
|
||||
|
||||
/** @brief Get the OID, offset, db root, partition, and segment of a logical block ID.
|
||||
@ -495,7 +502,7 @@ public:
|
||||
*/
|
||||
EXPORT int getExtents(int OID, std::vector<struct EMEntry>& entries,
|
||||
bool sorted = true, bool notFoundErr = true,
|
||||
bool incOutOfService = false) throw();
|
||||
bool incOutOfService = false);
|
||||
|
||||
/** @brief Gets the extents of a given OID under specified dbroot
|
||||
*
|
||||
@ -1015,6 +1022,7 @@ public:
|
||||
*/
|
||||
EXPORT void invalidateUncommittedExtentLBIDs(execplan::CalpontSystemCatalog::SCN txnid,
|
||||
std::vector<LBID_t>* plbidList = NULL);
|
||||
|
||||
private:
|
||||
DBRM(const DBRM& brm);
|
||||
DBRM& operator=(const DBRM& brm);
|
||||
|
Reference in New Issue
Block a user