Commit e103d88e authored by yiwenshao's avatar yiwenshao

in cdb_test, when we meet exception, we should exit

parent c54c5ab4
...@@ -200,6 +200,7 @@ bool myRewrite(std::string curQuery,unsigned long long _thread_id,std::string cl ...@@ -200,6 +200,7 @@ bool myRewrite(std::string curQuery,unsigned long long _thread_id,std::string cl
c_wrapper->setQueryRewrite(std::move(qr)); c_wrapper->setQueryRewrite(std::move(qr));
}catch(...){ }catch(...){
std::cout<<"rewrite exception!!!"<<std::endl; std::cout<<"rewrite exception!!!"<<std::endl;
exit(0);
return false; return false;
} }
return true; return true;
...@@ -333,6 +334,7 @@ void myNext(std::string client,bool isFirst,ResType inRes) { ...@@ -333,6 +334,7 @@ void myNext(std::string client,bool isFirst,ResType inRes) {
} }
}catch(...){ }catch(...){
std::cout<<"next error"<<std::endl; std::cout<<"next error"<<std::endl;
exit(0);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment