From 2c5ef57fe4689fd968cd65aa7281b036420ea608 Mon Sep 17 00:00:00 2001 From: bookug Date: Sun, 2 Apr 2017 22:04:55 +0800 Subject: [PATCH] fix: DEBUG_VSTREE error caused by #define DEBUG - Util util by zengli --- Main/gadd.cpp | 4 ++-- Main/gbuild.cpp | 4 ++-- Main/gclient.cpp | 6 +++--- Main/gconsole.cpp | 4 ++-- Main/gquery.cpp | 4 ++-- Main/gserver.cpp | 4 ++-- Main/gsub.cpp | 4 ++-- Util/Util.h | 2 +- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/Main/gadd.cpp b/Main/gadd.cpp index 498f86d..c7e8cdc 100644 --- a/Main/gadd.cpp +++ b/Main/gadd.cpp @@ -7,9 +7,9 @@ int main(int argc, char * argv[]) { //chdir(dirname(argv[0])); -#ifdef DEBUG +//#ifdef DEBUG Util util; -#endif +//#endif cout << "argc: " << argc << "\t"; cout << "DB_store:" << argv[1] << "\t"; diff --git a/Main/gbuild.cpp b/Main/gbuild.cpp index 23791c2..bca5c16 100644 --- a/Main/gbuild.cpp +++ b/Main/gbuild.cpp @@ -17,9 +17,9 @@ int main(int argc, char * argv[]) { //chdir(dirname(argv[0])); -#ifdef DEBUG +//#ifdef DEBUG Util util; -#endif +//#endif if(argc < 3) //./gbuild { //output help info here diff --git a/Main/gclient.cpp b/Main/gclient.cpp index c42de4d..9946ebd 100644 --- a/Main/gclient.cpp +++ b/Main/gclient.cpp @@ -12,9 +12,9 @@ int main(int argc, char * argv[]) { //chdir(dirname(argv[0])); -#ifdef DEBUG +//#ifdef DEBUG Util util; -#endif +//#endif std::string ip = Socket::DEFAULT_SERVER_IP; unsigned short port = Socket::DEFAULT_CONNECT_PORT; @@ -38,4 +38,4 @@ int main(int argc, char * argv[]) client.run(); return 0; -} \ No newline at end of file +} diff --git a/Main/gconsole.cpp b/Main/gconsole.cpp index 61962c1..53a3447 100644 --- a/Main/gconsole.cpp +++ b/Main/gconsole.cpp @@ -122,9 +122,9 @@ main(int argc, char **argv) //NOTICE:this is needed to ensure the file path is the work path //chdir(dirname(argv[0])); //NOTICE:this is needed to set several debug files -#ifdef DEBUG +//#ifdef DEBUG Util util; -#endif +//#endif db_home = Util::global_config["db_home"]; diff --git a/Main/gquery.cpp b/Main/gquery.cpp index 7121b40..70c91c1 100644 --- a/Main/gquery.cpp +++ b/Main/gquery.cpp @@ -38,9 +38,9 @@ int main(int argc, char * argv[]) { //chdir(dirname(argv[0])); -#ifdef DEBUG +//#ifdef DEBUG Util util; -#endif +//#endif if (argc == 1 || strcmp(argv[1], "-h") == 0 || strcmp(argv[1], "--help") == 0) { diff --git a/Main/gserver.cpp b/Main/gserver.cpp index f04948b..f8f6248 100644 --- a/Main/gserver.cpp +++ b/Main/gserver.cpp @@ -22,9 +22,9 @@ bool stopServer(); int main(int argc, char* argv[]) { -#ifdef DEBUG +//#ifdef DEBUG Util util; -#endif +//#endif string mode; if (argc == 1) { diff --git a/Main/gsub.cpp b/Main/gsub.cpp index a7b1b5a..14a4938 100644 --- a/Main/gsub.cpp +++ b/Main/gsub.cpp @@ -12,9 +12,9 @@ int main(int argc, char * argv[]) { //chdir(dirname(argv[0])); -#ifdef DEBUG +//#ifdef DEBUG Util util; -#endif +//#endif cout << "argc: " << argc << "\t"; cout << "DB_store:" << argv[1] << "\t"; diff --git a/Util/Util.h b/Util/Util.h index b5c02af..1bb5e51 100644 --- a/Util/Util.h +++ b/Util/Util.h @@ -87,7 +87,7 @@ in the sparql query can point to the same node in data graph) //#define DEBUG_STREAM //#define DEBUG_PRECISE 1 all information //#define DEBUG_KVSTORE 1 //in KVstore -#define DEBUG_VSTREE 1 //in Database +//#define DEBUG_VSTREE 1 //in Database //#define DEBUG_LRUCACHE 1 //#define DEBUG_DATABASE 1 //in Database //