debug the ghttp process

This commit is contained in:
liwenjie 2020-07-20 12:24:14 +08:00
parent 62d97af3d3
commit d60a03b4bd
3 changed files with 7 additions and 1 deletions

View File

@ -1433,7 +1433,10 @@ Database::query(const string _query, ResultSet& _result_set, FILE* _fp, bool upd
string dictionary_store_path = this->store_path + "/dictionary.dc";
this->stringindex->SetTrie(this->kvstore->getTrie());
GeneralEvaluation general_evaluation(this->vstree, this->kvstore, this->stringindex, this->query_cache, this->pre2num, this->pre2sub, this->pre2obj, this->limitID_predicate, this->limitID_literal, this->limitID_entity);
//GeneralEvaluation general_evaluation(this->vstree, this->kvstore, this->stringindex, this->query_cache, this->pre2num,
// this->pre2sub, this->pre2obj, this->limitID_predicate, this->limitID_literal, this->limitID_entity);
GeneralEvaluation general_evaluation = new GeneralEvaluation(this->vstree, this->kvstore, this->stringindex, this->query_cache, this->pre2num,
this->pre2sub, this->pre2obj, this->limitID_predicate, this->limitID_literal, this->limitID_entity);
long tv_begin = Util::get_cur_time();
cout << "lock the query_parse_lock ." << endl;

View File

@ -692,6 +692,7 @@ int main(int argc, char* argv[])
if (WIFEXITED(status)) {
return 0;
} else {
cout << "Status Code:" << status << endl;
cout << "Server stopped abnormally, restarting server..." << endl;
//break;
}

View File

@ -73,7 +73,9 @@ bool GeneralEvaluation::parseQuery(const string& _query)
{
try
{
printf("begin parse query");
fflush(stdout);
this->query_parser.SPARQLParse(_query, this->query_tree);
}
catch (const char* e)