diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-04-27 20:41:31 +0300 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-04-27 20:41:31 +0300 |
commit | 4d59f45260547b3230f177498b6fa07a12647fdc (patch) | |
tree | c39c6757a7a7ddbc4849769b288c0131da74803d /client/mysqlbinlog.cc | |
parent | acf6f92aa936fbfe7524617ae57d011ab8f1f96d (diff) | |
parent | 00377147e3029b982cbc29d3f4477362c6e6fdb4 (diff) | |
download | mariadb-git-4d59f45260547b3230f177498b6fa07a12647fdc.tar.gz |
Merge 10.2 into 10.3
Diffstat (limited to 'client/mysqlbinlog.cc')
-rw-r--r-- | client/mysqlbinlog.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc index c2409836142..7060775112b 100644 --- a/client/mysqlbinlog.cc +++ b/client/mysqlbinlog.cc @@ -1,6 +1,6 @@ /* Copyright (c) 2000, 2014, Oracle and/or its affiliates. - Copyright (c) 2009, 2014, MariaDB + Copyright (c) 2009, 2019, MariaDB This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -233,9 +233,8 @@ bool print_annotate_event(PRINT_EVENT_INFO *print_event_info) bool error= 0; if (annotate_event) { - error= annotate_event->print(result_file, print_event_info); - delete annotate_event; // the event should not be printed more than once - annotate_event= 0; + annotate_event->print(result_file, print_event_info); + free_annotate_event(); } return error; } @@ -1553,8 +1552,6 @@ end: } } - if (remote_opt) - ev->temp_buf= 0; if (destroy_evt) /* destroy it later if not set (ignored table map) */ delete ev; } |