wrong query log multiline parsing

Bug #1080648 reported by Vlad Lesin
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
MOVED - Percona Playback
Fix Released
High
Vlad Lesin

Bug Description

The query_log plugin parses query log entries so that the whole entry interprets as query. And the whole query log entry(query itself + metadata) is sent to server.

The issue may be in :
bool QueryLogEntry::parse_metadata(const std::string &s)
{
...
  if (s[0] == '#' && strncmp(s.c_str(), "# administrator", strlen("# administrator")))
  {
    query.append(s);
    r= true;
  }
...
}

The above condition interprers any string that does not begins from "# administrator" as query string.

Vlad Lesin (vlad-lesin)
Changed in percona-playback:
assignee: nobody → Vlad Lesin (vlad-lesin)
Vlad Lesin (vlad-lesin)
Changed in percona-playback:
importance: Undecided → High
Stewart Smith (stewart)
Changed in percona-playback:
status: New → Fix Committed
milestone: none → 0.6
Stewart Smith (stewart)
Changed in percona-playback:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.