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-4483: Fix and consolidate log files and cpimport logging.
This commit is contained in:
@ -34,6 +34,7 @@ using namespace std;
|
||||
#include "rwlock_local.h"
|
||||
#include "dbrm.h"
|
||||
#include "pp_logger.h"
|
||||
#include "mcsconfig.h"
|
||||
|
||||
namespace dbbc
|
||||
{
|
||||
@ -69,7 +70,7 @@ BlockRequestProcessor::BlockRequestProcessor(uint32_t numBlcks,
|
||||
#ifdef _MSC_VER
|
||||
brpLogFileName << "C:/Calpont/log/trace/brp." << tid;
|
||||
#else
|
||||
brpLogFileName << "/var/log/mariadb/columnstore/trace/brp." << tid;
|
||||
brpLogFileName << MCSLOGDIR << "/trace/brp." << tid;
|
||||
#endif
|
||||
fLogFile.open(brpLogFileName.str().c_str(), ios_base::app | ios_base::ate);
|
||||
}
|
||||
|
@ -41,6 +41,7 @@
|
||||
#include "stats.h"
|
||||
#include "configcpp.h"
|
||||
#include "filebuffermgr.h"
|
||||
#include "mcsconfig.h"
|
||||
|
||||
using namespace config;
|
||||
using namespace boost;
|
||||
@ -73,7 +74,7 @@ FileBufferMgr::FileBufferMgr(const uint32_t numBlcks, const uint32_t blkSz, cons
|
||||
#ifdef _MSC_VER
|
||||
fLog.open("C:/Calpont/log/trace/bc", ios_base::app | ios_base::ate);
|
||||
#else
|
||||
fLog.open("/var/log/mariadb/columnstore/trace/bc", ios_base::app | ios_base::ate);
|
||||
fLog.open(string(MCSLOGDIR) + "/trace/bc", ios_base::app | ios_base::ate);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -103,6 +103,8 @@ using namespace compress;
|
||||
#include "IDBLogger.h"
|
||||
using namespace idbdatafile;
|
||||
|
||||
#include "mcsconfig.h"
|
||||
|
||||
typedef tr1::unordered_set<BRM::OID_t> USOID;
|
||||
|
||||
namespace primitiveprocessor
|
||||
@ -454,7 +456,7 @@ void* thr_popper(ioManager* arg)
|
||||
iomLogFileName << "C:/Calpont/log/trace/iom." << threadId;
|
||||
#else
|
||||
threadId = pthread_self();
|
||||
iomLogFileName << "/var/log/mariadb/columnstore/trace/iom." << threadId;
|
||||
iomLogFileName << MCSLOGDIR << "/trace/iom." << threadId;
|
||||
#endif
|
||||
lFile.open(iomLogFileName.str().c_str(), ios_base::app | ios_base::ate);
|
||||
}
|
||||
@ -1351,7 +1353,7 @@ ioManager::ioManager(FileBufferMgr& fbm,
|
||||
#ifdef _MSC_VER
|
||||
FDTraceFile().open("C:/Calpont/log/trace/fdcache", ios_base::ate | ios_base::app);
|
||||
#else
|
||||
FDTraceFile().open("/var/log/mariadb/columnstore/trace/fdcache", ios_base::ate | ios_base::app);
|
||||
FDTraceFile().open(string(MCSLOGDIR) + "/trace/fdcache", ios_base::ate | ios_base::app);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -42,6 +42,7 @@ using namespace boost;
|
||||
#include "stats.h"
|
||||
#include "messagelog.h"
|
||||
#include "exceptclasses.h"
|
||||
#include "mcsconfig.h"
|
||||
|
||||
using namespace BRM;
|
||||
|
||||
@ -110,7 +111,7 @@ public:
|
||||
#ifdef _MSC_VER
|
||||
oss << "C:/Calpont/log/trace/" << outName << '.' << sessionID;
|
||||
#else
|
||||
oss << "/var/log/mariadb/columnstore/trace/" << outName << '.' << sessionID;
|
||||
oss << MCSLOGDIR << "/trace/" << outName << '.' << sessionID;
|
||||
#endif
|
||||
oFile.reset(new ofstream());
|
||||
oFile->open(oss.str().c_str(), ios_base::out | ios_base::ate | ios_base::app);
|
||||
|
Reference in New Issue
Block a user