summaryrefslogtreecommitdiff
path: root/storage/innobase/btr/btr0pcur.c
diff options
context:
space:
mode:
authorRohit Kalhans <rohit.kalhans@oracle.com>2012-08-08 22:15:46 +0530
committerRohit Kalhans <rohit.kalhans@oracle.com>2012-08-08 22:15:46 +0530
commitff04c5bd6e753a7afd8f209918e900267ba2544f (patch)
tree529c5476f33a30da76a33c1494c7fd77e2cec9b3 /storage/innobase/btr/btr0pcur.c
parent5ad8292c63a89db63a54f9cfed6ceb3a35656f7b (diff)
downloadmariadb-git-ff04c5bd6e753a7afd8f209918e900267ba2544f.tar.gz
BUG#11757312: MYSQLBINLOG DOES NOT ACCEPT INPUT FROM STDIN
WHEN STDIN IS A PIPE Problem: Mysqlbinlog does not accept the input from STDIN when STDIN is a pipe. This prevents the users from passing the input file through a shell pipe. Background: The my_seek() function does not check if the file descriptor passed to it is regular (seekable) file. The check_header() function in mysqlbinlog calls the my_b_seek() unconditionally and it fails when the underlying file is a PIPE. Resolution: We resolve this problem by checking if the underlying file is a regular file by using my_fstat() before calling my_b_seek(). If the underlying file is not seekable we skip the call to my_b_seek() in check_header(). client/mysqlbinlog.cc: Added a check to avoid the my_b_seek() call if the underlying file is a PIPE.
Diffstat (limited to 'storage/innobase/btr/btr0pcur.c')
0 files changed, 0 insertions, 0 deletions