You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
MCOL-4030: first commit of warning removals unneed const and missing virtual dtors.
This commit is contained in:
@ -80,7 +80,7 @@ public:
|
||||
/**
|
||||
* @brief retrieve the Disk Block at lbid, ver from the Disk Block Buffer Cache
|
||||
**/
|
||||
inline const int read(const BRM::LBID_t& lbid, const BRM::VER_t& ver, FileBuffer& fb)
|
||||
inline int read(const BRM::LBID_t& lbid, const BRM::VER_t& ver, FileBuffer& fb)
|
||||
{
|
||||
return fBCCBrp->read(lbid, ver, fb);
|
||||
}
|
||||
@ -88,12 +88,12 @@ public:
|
||||
/**
|
||||
* @brief retrieve the Disk Block at lbid, ver from the Disk Block Buffer Cache
|
||||
**/
|
||||
inline const int read(const BRM::LBID_t& lbid, const BRM::VER_t& ver, void* bufferPtr)
|
||||
inline int read(const BRM::LBID_t& lbid, const BRM::VER_t& ver, void* bufferPtr)
|
||||
{
|
||||
return fBCCBrp->read(lbid, ver, bufferPtr);
|
||||
}
|
||||
|
||||
inline const int getBlock(const BRM::LBID_t& lbid, const BRM::QueryContext& ver, const BRM::VER_t txn, const int compType,
|
||||
inline int getBlock(const BRM::LBID_t& lbid, const BRM::QueryContext& ver, const BRM::VER_t txn, const int compType,
|
||||
void* bufferPtr, bool flg, bool& wasCached, bool* wasVersioned = NULL, bool insertIntoCache = true,
|
||||
bool readFromCache = true)
|
||||
{
|
||||
|
@ -210,7 +210,7 @@ int BlockRequestProcessor::check(BRM::LBID_t lbid, const BRM::QueryContext& ver,
|
||||
}
|
||||
}
|
||||
|
||||
const int BlockRequestProcessor::getBlock(const BRM::LBID_t& lbid, const BRM::QueryContext& ver, BRM::VER_t txn,
|
||||
int BlockRequestProcessor::getBlock(const BRM::LBID_t& lbid, const BRM::QueryContext& ver, BRM::VER_t txn,
|
||||
int compType, void* bufferPtr, bool vbFlg, bool& wasCached, bool* versioned, bool insertIntoCache,
|
||||
bool readFromCache)
|
||||
{
|
||||
|
@ -90,7 +90,7 @@ public:
|
||||
return fbMgr.findPtr(HashObject_t(lbid, ver, flg));
|
||||
}
|
||||
|
||||
inline const int read(const BRM::LBID_t& lbid, const BRM::VER_t& ver, FileBuffer& fb)
|
||||
inline int read(const BRM::LBID_t& lbid, const BRM::VER_t& ver, FileBuffer& fb)
|
||||
{
|
||||
return (fbMgr.find(HashObject_t(lbid, ver, 0), fb) ? 1 : 0);
|
||||
}
|
||||
@ -98,12 +98,12 @@ public:
|
||||
/**
|
||||
* @brief retrieve the lbid@ver disk block from the block cache
|
||||
**/
|
||||
inline const int read(const BRM::LBID_t& lbid, const BRM::VER_t& ver, void* bufferPtr)
|
||||
inline int read(const BRM::LBID_t& lbid, const BRM::VER_t& ver, void* bufferPtr)
|
||||
{
|
||||
return (fbMgr.find(HashObject_t(lbid, ver, 0), bufferPtr) ? 1 : 0);
|
||||
}
|
||||
|
||||
const int getBlock(const BRM::LBID_t& lbid, const BRM::QueryContext& ver, BRM::VER_t txn, int compType,
|
||||
int getBlock(const BRM::LBID_t& lbid, const BRM::QueryContext& ver, BRM::VER_t txn, int compType,
|
||||
void* bufferPtr, bool flg, bool& wasCached, bool* wasVersioned, bool insertIntoCache,
|
||||
bool readFromCache);
|
||||
|
||||
|
@ -103,7 +103,7 @@ public:
|
||||
return fByteData;
|
||||
}
|
||||
|
||||
inline const uint32_t datLen() const
|
||||
inline uint32_t datLen() const
|
||||
{
|
||||
return fDataLen;
|
||||
}
|
||||
@ -136,7 +136,7 @@ public:
|
||||
/**
|
||||
* @brief return the lbid value of disk bloc
|
||||
**/
|
||||
inline const BRM::LBID_t Lbid() const
|
||||
inline BRM::LBID_t Lbid() const
|
||||
{
|
||||
return fLbid;
|
||||
}
|
||||
@ -148,7 +148,7 @@ public:
|
||||
/**
|
||||
* @brief return the version of this disk block. ignored for range retrievals
|
||||
**/
|
||||
inline const BRM::VER_t Verid() const
|
||||
inline BRM::VER_t Verid() const
|
||||
{
|
||||
return fVerid;
|
||||
}
|
||||
|
@ -201,7 +201,7 @@ public:
|
||||
}
|
||||
|
||||
void setReportingFrequency(const uint32_t d);
|
||||
const uint32_t ReportingFrequency() const
|
||||
uint32_t ReportingFrequency() const
|
||||
{
|
||||
return fReportFrequency;
|
||||
}
|
||||
|
@ -130,7 +130,7 @@ public:
|
||||
/**
|
||||
* @brief lbid requested
|
||||
**/
|
||||
const BRM::LBID_t Lbid() const
|
||||
BRM::LBID_t Lbid() const
|
||||
{
|
||||
return fLBID;
|
||||
}
|
||||
@ -146,17 +146,17 @@ public:
|
||||
/**
|
||||
* @brief VBBM flag of the LBID/Ver
|
||||
**/
|
||||
const bool Flg() const
|
||||
bool Flg() const
|
||||
{
|
||||
return fFlg;
|
||||
}
|
||||
|
||||
const BRM::VER_t Txn() const
|
||||
BRM::VER_t Txn() const
|
||||
{
|
||||
return fTxn;
|
||||
}
|
||||
|
||||
const int CompType() const
|
||||
int CompType() const
|
||||
{
|
||||
return fCompType;
|
||||
}
|
||||
@ -164,7 +164,7 @@ public:
|
||||
/**
|
||||
* @brief number of blocks requested
|
||||
**/
|
||||
const uint32_t BlocksRequested() const
|
||||
uint32_t BlocksRequested() const
|
||||
{
|
||||
return fLength;
|
||||
}
|
||||
@ -180,11 +180,11 @@ public:
|
||||
/**
|
||||
* @brief number of blocks read from disk
|
||||
**/
|
||||
const uint32_t BlocksRead() const
|
||||
uint32_t BlocksRead() const
|
||||
{
|
||||
return fblksRead;
|
||||
}
|
||||
const uint32_t BlocksLoaded() const
|
||||
uint32_t BlocksLoaded() const
|
||||
{
|
||||
return fblksLoaded;
|
||||
}
|
||||
|
@ -1368,7 +1368,7 @@ void ioManager::buildOidFileName(const BRM::OID_t oid, uint16_t dbRoot, const ui
|
||||
fFileOp.getFileNameForPrimProc(oid, file_name, dbRoot, partNum, segNum);
|
||||
}
|
||||
|
||||
const int ioManager::localLbidLookup(BRM::LBID_t lbid,
|
||||
int ioManager::localLbidLookup(BRM::LBID_t lbid,
|
||||
BRM::VER_t verid,
|
||||
bool vbFlag,
|
||||
BRM::OID_t& oid,
|
||||
|
@ -73,7 +73,7 @@ public:
|
||||
return fConfig;
|
||||
}
|
||||
|
||||
const int localLbidLookup(BRM::LBID_t lbid,
|
||||
int localLbidLookup(BRM::LBID_t lbid,
|
||||
BRM::VER_t verid,
|
||||
bool vbFlag,
|
||||
BRM::OID_t& oid,
|
||||
@ -88,7 +88,7 @@ public:
|
||||
const uint16_t segNum,
|
||||
char* file_name);
|
||||
|
||||
const uint32_t getExtentRows()
|
||||
uint32_t getExtentRows()
|
||||
{
|
||||
return fdbrm.getExtentRows();
|
||||
}
|
||||
|
Reference in New Issue
Block a user