1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Reformat all code to coding standard

This commit is contained in:
Andrew Hutchings
2017-10-26 17:18:17 +01:00
parent 4985f3456e
commit 01446d1e22
1296 changed files with 403852 additions and 353747 deletions

View File

@ -40,40 +40,42 @@
using namespace BRM;
using namespace std;
void usage(char *name)
void usage(char* name)
{
cout << "Usage: " << name << " <prefix>" << endl;
exit(1);
cout << "Usage: " << name << " <prefix>" << endl;
exit(1);
}
int main(int argc, char **argv)
int main(int argc, char** argv)
{
#if __WORDSIZE <= 32
//This code is OBE now that the structs are padded correctly
BlockResolutionManager brm;
int err;
string prefix;
BlockResolutionManager brm;
int err;
string prefix;
if (argc > 2)
usage(argv[0]);
else if (argc == 2)
prefix = argv[1];
else
prefix = "BRM_state";
if (argc > 2)
usage(argv[0]);
else if (argc == 2)
prefix = argv[1];
else
prefix = "BRM_state";
idbdatafile::IDBPolicy::configIDBPolicy();
idbdatafile::IDBPolicy::configIDBPolicy();
err = brm.loadState(prefix);
if (err == 0)
cout << "OK." << endl;
else {
cout << "Load failed" << endl;
return 1;
}
err = brm.loadState(prefix);
return 0;
if (err == 0)
cout << "OK." << endl;
else
{
cout << "Load failed" << endl;
return 1;
}
return 0;
#else
cerr << "This tool does not work on 64-bit arch!" << endl;
return 1;
cerr << "This tool does not work on 64-bit arch!" << endl;
return 1;
#endif
}