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:
@ -37,34 +37,38 @@ namespace startup
|
||||
/* static */
|
||||
mutex StartUp::fInstallDirLock;
|
||||
/* static */
|
||||
string* StartUp::fInstallDirp=0;
|
||||
string* StartUp::fInstallDirp = 0;
|
||||
|
||||
/* static */
|
||||
const string StartUp::installDir()
|
||||
{
|
||||
mutex::scoped_lock lk(fInstallDirLock);
|
||||
mutex::scoped_lock lk(fInstallDirLock);
|
||||
|
||||
if (fInstallDirp)
|
||||
return *fInstallDirp;
|
||||
if (fInstallDirp)
|
||||
return *fInstallDirp;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
fInstallDirp = new string("C:\\Calpont");
|
||||
string cfStr = IDBreadRegistry("");
|
||||
if (!cfStr.empty())
|
||||
*fInstallDirp = cfStr;
|
||||
fInstallDirp = new string("C:\\Calpont");
|
||||
string cfStr = IDBreadRegistry("");
|
||||
|
||||
if (!cfStr.empty())
|
||||
*fInstallDirp = cfStr;
|
||||
|
||||
#else
|
||||
fInstallDirp = new string("/usr/local/mariadb/columnstore");
|
||||
//See if we can figure out the install dir in Linux...
|
||||
//1. env var COLUMNSTORE_INSTALL_DIR
|
||||
const char* p=0;
|
||||
p = getenv("COLUMNSTORE_INSTALL_DIR");
|
||||
if (p && *p)
|
||||
*fInstallDirp = p;
|
||||
//2. up one level from current binary location?
|
||||
//3. fall back to /usr/local/mariadb/columnstore
|
||||
fInstallDirp = new string("/usr/local/mariadb/columnstore");
|
||||
//See if we can figure out the install dir in Linux...
|
||||
//1. env var COLUMNSTORE_INSTALL_DIR
|
||||
const char* p = 0;
|
||||
p = getenv("COLUMNSTORE_INSTALL_DIR");
|
||||
|
||||
if (p && *p)
|
||||
*fInstallDirp = p;
|
||||
|
||||
//2. up one level from current binary location?
|
||||
//3. fall back to /usr/local/mariadb/columnstore
|
||||
#endif
|
||||
|
||||
return *fInstallDirp;
|
||||
return *fInstallDirp;
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -35,17 +35,17 @@ namespace startup
|
||||
class StartUp
|
||||
{
|
||||
public:
|
||||
StartUp() {}
|
||||
~StartUp() {}
|
||||
StartUp() {}
|
||||
~StartUp() {}
|
||||
|
||||
static const std::string installDir();
|
||||
static const std::string installDir();
|
||||
|
||||
private:
|
||||
StartUp(const StartUp& rhs);
|
||||
StartUp& operator=(const StartUp& rhs);
|
||||
StartUp(const StartUp& rhs);
|
||||
StartUp& operator=(const StartUp& rhs);
|
||||
|
||||
static boost::mutex fInstallDirLock;
|
||||
static std::string* fInstallDirp;
|
||||
static boost::mutex fInstallDirLock;
|
||||
static std::string* fInstallDirp;
|
||||
};
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user