~vlad-lesin/percona-playback/connections_pool

« back to all changes in this revision

Viewing changes to percona_playback/test/preserve_query_time.cc

  • Committer: Stewart Smith
  • Date: 2012-09-17 05:54:15 UTC
  • Revision ID: stewart@flamingspork.com-20120917055415-m8flwusm6d0q2tk9
fix 'multi-lines queries don't work' bug for query_log. Basically, \n can make it into the query part of the query log. This patch alters and cleans up slow query log parsing, likely making it a bit more efficient at the same time.

Show diffs side-by-side

added added

removed removed

Lines of Context:
78
78
  assert(duration.length().total_microseconds() > 250000);
79
79
 
80
80
  assert(r->err == 0);
81
 
  assert(r->n_queries == 4);
 
81
  assert(r->n_queries == 2);
82
82
  assert(r->n_log_entries = 2);
83
83
 
84
84
  percona_playback_destroy(&the_percona_playback);