diff options
author | unknown <mats@mysql.com> | 2005-02-10 19:15:53 +0100 |
---|---|---|
committer | unknown <mats@mysql.com> | 2005-02-10 19:15:53 +0100 |
commit | 6520c161cf4d8f80a7701841e8e94ee53b95f6ed (patch) | |
tree | 56f1937e9b425efebfb44778547ae4244b1b9131 /client/mysqlbinlog.cc | |
parent | 6cdda5b38b732d29aad9b6be487a74b3a0385bfa (diff) | |
parent | 00a71ae83ae3ddc6448852c31ad486025b5e197c (diff) | |
download | mariadb-git-6520c161cf4d8f80a7701841e8e94ee53b95f6ed.tar.gz |
Merge mysql.com:/home/bkroot/mysql-5.0
into mysql.com:/home/bk/b7853-mysql-5.0
client/mysqlbinlog.cc:
Auto merged
mysql-test/r/mysqlbinlog.result:
Auto merged
Diffstat (limited to 'client/mysqlbinlog.cc')
-rw-r--r-- | client/mysqlbinlog.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc index dc1c1e6fc02..47fe90904dc 100644 --- a/client/mysqlbinlog.cc +++ b/client/mysqlbinlog.cc @@ -1130,15 +1130,15 @@ static int dump_local_log_entries(const char* logname) } check_header(file, &description_event); } - else // reading from stdin; TODO: check that it works + else // reading from stdin; { - if (init_io_cache(file, fileno(result_file), 0, READ_CACHE, (my_off_t) 0, + if (init_io_cache(file, fileno(stdin), 0, READ_CACHE, (my_off_t) 0, 0, MYF(MY_WME | MY_NABP | MY_DONT_CHECK_FILESIZE))) return 1; check_header(file, &description_event); if (start_position) { - /* skip 'start_position' characters from stdout */ + /* skip 'start_position' characters from stdin */ byte buff[IO_SIZE]; my_off_t length,tmp; for (length= start_position_mot ; length > 0 ; length-=tmp) @@ -1151,8 +1151,6 @@ static int dump_local_log_entries(const char* logname) } } } - file->pos_in_file= start_position_mot; - file->seek_not_done=0; } if (!description_event || !description_event->is_valid()) |