You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
Reformat all code to coding standard
This commit is contained in:
@ -21,7 +21,7 @@
|
||||
//
|
||||
// C++ Interface: iomanager
|
||||
//
|
||||
// Description:
|
||||
// Description:
|
||||
//
|
||||
//
|
||||
// Author: Jason Rodriguez <jrodriguez@calpont.com>
|
||||
@ -42,52 +42,69 @@
|
||||
#include "fileblockrequestqueue.h"
|
||||
#include "filebuffermgr.h"
|
||||
|
||||
namespace dbbc {
|
||||
namespace dbbc
|
||||
{
|
||||
|
||||
class ioManager
|
||||
{
|
||||
|
||||
class ioManager {
|
||||
|
||||
public:
|
||||
|
||||
ioManager(FileBufferMgr& fbm, fileBlockRequestQueue& fbrq, int thrCount,
|
||||
int bsPerRead);
|
||||
//ioManager(FileBufferMgr& fbm, int thrCount);
|
||||
~ioManager();
|
||||
int readerCount() const {return fThreadCount;}
|
||||
fileRequest* getNextRequest();
|
||||
void go(void);
|
||||
void stop();
|
||||
FileBufferMgr& fileBufferManager() {return fIOMfbMgr;}
|
||||
config::Config* configPtr() {return fConfig;}
|
||||
BRM::LBID_t lbidLookup(BRM::LBID_t lbid,
|
||||
BRM::VER_t verid,
|
||||
bool vbFlag,
|
||||
BRM::OID_t& oid,
|
||||
uint32_t& offset);
|
||||
void buildOidFileName(const BRM::OID_t oid, char* file_name);
|
||||
|
||||
uint32_t getExtentSize() { return fdbrm.getExtentSize(); }
|
||||
ioManager(FileBufferMgr& fbm, fileBlockRequestQueue& fbrq, int thrCount,
|
||||
int bsPerRead);
|
||||
//ioManager(FileBufferMgr& fbm, int thrCount);
|
||||
~ioManager();
|
||||
int readerCount() const
|
||||
{
|
||||
return fThreadCount;
|
||||
}
|
||||
fileRequest* getNextRequest();
|
||||
void go(void);
|
||||
void stop();
|
||||
FileBufferMgr& fileBufferManager()
|
||||
{
|
||||
return fIOMfbMgr;
|
||||
}
|
||||
config::Config* configPtr()
|
||||
{
|
||||
return fConfig;
|
||||
}
|
||||
BRM::LBID_t lbidLookup(BRM::LBID_t lbid,
|
||||
BRM::VER_t verid,
|
||||
bool vbFlag,
|
||||
BRM::OID_t& oid,
|
||||
uint32_t& offset);
|
||||
void buildOidFileName(const BRM::OID_t oid, char* file_name);
|
||||
|
||||
uint32_t blocksPerRead;
|
||||
uint32_t getExtentSize()
|
||||
{
|
||||
return fdbrm.getExtentSize();
|
||||
}
|
||||
|
||||
bool IOTrace() const { return fIOTrace;}
|
||||
uint32_t blocksPerRead;
|
||||
|
||||
bool IOTrace() const
|
||||
{
|
||||
return fIOTrace;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
FileBufferMgr& fIOMfbMgr;
|
||||
fileBlockRequestQueue& fIOMRequestQueue;
|
||||
int fThreadCount;
|
||||
pthread_t fPoppertid;
|
||||
pthread_t fThreadArr[256];
|
||||
int createReaders();
|
||||
config::Config* fConfig;
|
||||
BRM::DBRM fdbrm;
|
||||
WriteEngine::FileOp fFileOp;
|
||||
|
||||
// do not implement
|
||||
ioManager();
|
||||
ioManager(const ioManager& iom);
|
||||
const ioManager& operator=(const ioManager& iom);
|
||||
bool fIOTrace;
|
||||
FileBufferMgr& fIOMfbMgr;
|
||||
fileBlockRequestQueue& fIOMRequestQueue;
|
||||
int fThreadCount;
|
||||
pthread_t fPoppertid;
|
||||
pthread_t fThreadArr[256];
|
||||
int createReaders();
|
||||
config::Config* fConfig;
|
||||
BRM::DBRM fdbrm;
|
||||
WriteEngine::FileOp fFileOp;
|
||||
|
||||
// do not implement
|
||||
ioManager();
|
||||
ioManager(const ioManager& iom);
|
||||
const ioManager& operator=(const ioManager& iom);
|
||||
bool fIOTrace;
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user