Commit 0ae9fe7c authored by gejun's avatar gejun

fix a bug that QueryRemover assumes std::string is COW

parent 95a054f5
......@@ -423,8 +423,8 @@ void QuerySplitter::split() {
}
QueryRemover::QueryRemover(const std::string& str)
: _qs(str.data(), str.data() + str.size())
, _query(str)
: _query(str)
, _qs(_query.data(), _query.data() + _query.size())
, _iterated_len(0)
, _removed_current_key_value(false)
, _ever_removed(false) {
......
......@@ -285,8 +285,8 @@ public:
std::string modified_query();
private:
QuerySplitter _qs;
const std::string _query;
QuerySplitter _qs;
std::string _modified_query;
size_t _iterated_len;
bool _removed_current_key_value;
......
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