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
Reformat all code to coding standard
This commit is contained in:
@ -14,56 +14,61 @@ using namespace WriteEngine;
|
||||
void test()
|
||||
{
|
||||
std::cout << "getDBRootByIdx(1): " <<
|
||||
Config::getDBRootByIdx(1) << std::endl;
|
||||
Config::getDBRootByIdx(1) << std::endl;
|
||||
std::cout << "getDBRootByIdx(3): " <<
|
||||
Config::getDBRootByIdx(3) << std::endl;
|
||||
Config::getDBRootByIdx(3) << std::endl;
|
||||
|
||||
std::cout << "getDBRootByNum(1): " <<
|
||||
Config::getDBRootByNum(1) << std::endl;
|
||||
Config::getDBRootByNum(1) << std::endl;
|
||||
std::cout << "getDBRootByNum(3): " <<
|
||||
Config::getDBRootByNum(3) << std::endl;
|
||||
Config::getDBRootByNum(3) << std::endl;
|
||||
|
||||
std::vector<unsigned short> dbRootIds;
|
||||
Config::getRootIdList( dbRootIds );
|
||||
std::cout << "getRootIdList: ";
|
||||
for (unsigned k=0; k<dbRootIds.size(); k++) {
|
||||
std::cout << dbRootIds[k] << ' '; }
|
||||
|
||||
for (unsigned k = 0; k < dbRootIds.size(); k++)
|
||||
{
|
||||
std::cout << dbRootIds[k] << ' ';
|
||||
}
|
||||
|
||||
std::cout << std::endl;
|
||||
|
||||
std::vector<std::string> dbRootPathList;
|
||||
Config::getDBRootPathList( dbRootPathList );
|
||||
std::cout << "getDBRootPathList: " << std::endl;
|
||||
for (unsigned k=0; k<dbRootPathList.size(); k++)
|
||||
|
||||
for (unsigned k = 0; k < dbRootPathList.size(); k++)
|
||||
std::cout << " " << k << ". " << dbRootPathList[k] << std::endl;
|
||||
|
||||
std::cout << "getBulkRoot(): " <<
|
||||
Config::getBulkRoot() << std::endl;
|
||||
Config::getBulkRoot() << std::endl;
|
||||
std::cout << "DBRootCount(): " <<
|
||||
Config::DBRootCount() << std::endl;
|
||||
Config::DBRootCount() << std::endl;
|
||||
std::cout << "totalDBRootCount(): " <<
|
||||
Config::totalDBRootCount() << std::endl;
|
||||
Config::totalDBRootCount() << std::endl;
|
||||
std::cout << "getWaitPeriod(): " <<
|
||||
Config::getWaitPeriod() << std::endl;
|
||||
Config::getWaitPeriod() << std::endl;
|
||||
std::cout << "getFilePerColumnPartition(): " <<
|
||||
Config::getFilesPerColumnPartition() << std::endl;
|
||||
Config::getFilesPerColumnPartition() << std::endl;
|
||||
std::cout << "getExtentsPerSegmentFile(): " <<
|
||||
Config::getExtentsPerSegmentFile() << std::endl;
|
||||
Config::getExtentsPerSegmentFile() << std::endl;
|
||||
std::cout << "getBulkProcessPriority(): " <<
|
||||
Config::getBulkProcessPriority() << std::endl;
|
||||
Config::getBulkProcessPriority() << std::endl;
|
||||
std::cout << "getBulkRollbackDir(): " <<
|
||||
Config::getBulkRollbackDir() << std::endl;
|
||||
Config::getBulkRollbackDir() << std::endl;
|
||||
std::cout << "getMaxFileSystemDiskUsage(): " <<
|
||||
Config::getMaxFileSystemDiskUsage() << std::endl;
|
||||
Config::getMaxFileSystemDiskUsage() << std::endl;
|
||||
std::cout << "getNumCompressedPadBlks(): " <<
|
||||
Config::getNumCompressedPadBlks() << std::endl;
|
||||
Config::getNumCompressedPadBlks() << std::endl;
|
||||
std::cout << "getParentOAMModuleFlag(): " <<
|
||||
Config::getParentOAMModuleFlag() << std::endl;
|
||||
Config::getParentOAMModuleFlag() << std::endl;
|
||||
std::cout << "getLocalModuleType(): " <<
|
||||
Config::getLocalModuleType() << std::endl;
|
||||
Config::getLocalModuleType() << std::endl;
|
||||
std::cout << "getLocalModuleID(): " <<
|
||||
Config::getLocalModuleID() << std::endl;
|
||||
Config::getLocalModuleID() << std::endl;
|
||||
std::cout << "getVBRoot(): " <<
|
||||
Config::getVBRoot() << std::endl;
|
||||
Config::getVBRoot() << std::endl;
|
||||
}
|
||||
|
||||
int main()
|
||||
@ -73,6 +78,7 @@ int main()
|
||||
|
||||
int nTest = 0;
|
||||
std::cout << std::endl;
|
||||
|
||||
while (1)
|
||||
{
|
||||
std::cout << "test" << nTest << "..." << std::endl;
|
||||
@ -80,15 +86,17 @@ int main()
|
||||
std::cout << "Pause..." << std::endl;
|
||||
std::cin >> resp;
|
||||
std::cout << std::endl;
|
||||
|
||||
if (resp == 'c')
|
||||
{
|
||||
std::cout << "Has local DBRootList changed: " <<
|
||||
(bool)Config::hasLocalDBRootListChanged() << std::endl;
|
||||
(bool)Config::hasLocalDBRootListChanged() << std::endl;
|
||||
}
|
||||
else if (resp == 'q')
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
nTest++;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user