wrong query log multiline parsing

Reported by Vlad Lesin on 2012-11-19
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Percona Playback
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) on 2012-11-19
Changed in percona-playback:
assignee: nobody → Vlad Lesin (vlad-lesin)
Vlad Lesin (vlad-lesin) on 2012-11-19
Changed in percona-playback:
importance: Undecided → High
Stewart Smith (stewart) on 2012-12-07
Changed in percona-playback:
status: New → Fix Committed
milestone: none → 0.6
Stewart Smith (stewart) on 2013-03-14
Changed in percona-playback:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers