From 1183f6c3db39be528858a5d0fe85938079dc2ddf Mon Sep 17 00:00:00 2001 From: lei yu Date: Tue, 26 May 2020 15:45:38 +0800 Subject: [PATCH] change FullMatch to PartialMatch to be compatible with TiKV (#717) --- dbms/src/Flash/LogSearch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbms/src/Flash/LogSearch.cpp b/dbms/src/Flash/LogSearch.cpp index 866fa0a7a61..0a887ce2cdf 100644 --- a/dbms/src/Flash/LogSearch.cpp +++ b/dbms/src/Flash/LogSearch.cpp @@ -70,7 +70,7 @@ bool LogIterator::match(const LogMessage & log_msg) const auto & content = log_msg.message(); for (auto & regex : patterns) { - if (!RE2::FullMatch(content, regex)) + if (!RE2::PartialMatch(content, regex)) return false; }