diff options
author | Mats Kindahl <mats.kindahl@oracle.com> | 2010-08-16 14:50:27 +0200 |
---|---|---|
committer | Mats Kindahl <mats.kindahl@oracle.com> | 2010-08-16 14:50:27 +0200 |
commit | b0836bd309e5b7857771ccae7096f0fdcdfc58e2 (patch) | |
tree | 60ab98cb19a6a71445b167b4cbc5308f59767cc9 /vio/viosocket.c | |
parent | 0ea3fb557deb017cd96f1e57694d56a5ace8c80c (diff) | |
parent | 7017775fd11c4249c1b64ff45564c88b94cf526f (diff) | |
download | mariadb-git-b0836bd309e5b7857771ccae7096f0fdcdfc58e2.tar.gz |
Merging with mysql-5.5-stage.
Diffstat (limited to 'vio/viosocket.c')
-rw-r--r-- | vio/viosocket.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vio/viosocket.c b/vio/viosocket.c index 9c0243db4f3..163eb279d45 100644 --- a/vio/viosocket.c +++ b/vio/viosocket.c @@ -98,6 +98,10 @@ size_t vio_read_buff(Vio *vio, uchar* buf, size_t size) #undef VIO_UNBUFFERED_READ_MIN_SIZE } +my_bool vio_buff_has_data(Vio *vio) +{ + return (vio->read_pos != vio->read_end); +} size_t vio_write(Vio * vio, const uchar* buf, size_t size) { |