From 17e0ff2b46e2aec367ead8e45d9e5ece580df9d4 Mon Sep 17 00:00:00 2001 From: bookug Date: Mon, 26 Jun 2017 21:47:32 +0800 Subject: [PATCH] fix: set READ_WRITE as default database mode choose to set or not: ONLY_READ in Util.h if used as sparql endpoint, set it to save memory; otherwise, not set it to support insert/delete; by zengli --- Main/ghttp.cpp | 3 +++ Util/Util.h | 2 +- api/http/java/example/JavaAPIExample.java | 4 ++++ makefile | 8 ++++---- 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/Main/ghttp.cpp b/Main/ghttp.cpp index 7273636..6d08f9b 100644 --- a/Main/ghttp.cpp +++ b/Main/ghttp.cpp @@ -26,6 +26,9 @@ void default_resource_send(const HttpServer &server, const shared_ptr ?predicate ?object ." + //+ "}"; answer = gc.query(sparql); System.out.println(answer); gc.unload("LUBM10"); diff --git a/makefile b/makefile index 8dcf2ba..513880e 100644 --- a/makefile +++ b/makefile @@ -43,11 +43,11 @@ CC = ccache g++ #NOTICE: -O2 is recommended, while -O3 is dangerous #when developing, not use -O because it will disturb the normal #routine. use it for test and release. -CFLAGS = -c -Wall -O2 -pthread -std=c++11 -EXEFLAG = -O2 -pthread -std=c++11 +#CFLAGS = -c -Wall -O2 -pthread -std=c++11 +#EXEFLAG = -O2 -pthread -std=c++11 #-coverage -#CFLAGS = -c -Wall -O2 -pthread -g -#EXEFLAG = -O2 -pthread -g +CFLAGS = -c -Wall -pthread -g -std=c++11 +EXEFLAG = -pthread -g -std=c++11 #add -lreadline -ltermcap if using readline or objs contain readline library = -ltermcap -lreadline -L./lib -L/usr/local/lib -lantlr -lgcov -lboost_filesystem -lboost_system -lboost_regex -lpthread -I/usr/local/include/boost