Remove logger from StrippedQuery
Summary: benchmark/query/stripped.cpp outputs garbage because of some race condition in logger. Sometime even crashes, just be sure this should be removed. Reviewers: buda Reviewed By: buda Subscribers: pullbot Differential Revision: https://phabricator.memgraph.io/D477
This commit is contained in:
parent
e68c3f4e5f
commit
5403b99e18
@ -19,8 +19,7 @@ using namespace antlr4;
|
||||
|
||||
namespace query {
|
||||
|
||||
StrippedQuery::StrippedQuery(const std::string &query)
|
||||
: Loggable("StrippedQuery") {
|
||||
StrippedQuery::StrippedQuery(const std::string &query) {
|
||||
// Tokenize the query.
|
||||
ANTLRInputStream input(query);
|
||||
CypherLexer lexer(&input);
|
||||
@ -128,7 +127,5 @@ StrippedQuery::StrippedQuery(const std::string &query)
|
||||
|
||||
query_ = utils::Join(token_strings, " ");
|
||||
hash_ = fnv(query_);
|
||||
logger.info("stripped_query = {}", query_);
|
||||
logger.info("query_hash = {}", hash_);
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ const std::string kStrippedBooleanToken = "true";
|
||||
* * literals stripped from query
|
||||
* * hash of stripped query
|
||||
*/
|
||||
class StrippedQuery : Loggable {
|
||||
class StrippedQuery {
|
||||
public:
|
||||
/**
|
||||
* Strips the input query and stores stripped query, stripped arguments and
|
||||
|
Loading…
Reference in New Issue
Block a user