diff options
author | Sergei Golubchik <serg@mariadb.org> | 2015-05-26 22:09:40 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2015-06-02 18:53:37 +0200 |
commit | 318c826e932af69a864726efd24819d1cfa8dc8a (patch) | |
tree | 40e65f0d235464bd3c71e5a84bc972bc95b75535 /include/my_sys.h | |
parent | 6309a30dc96f6c3615b8c5609f07f9bc3898352c (diff) | |
download | mariadb-git-318c826e932af69a864726efd24819d1cfa8dc8a.tar.gz |
always use my_b_pread() instead of mysql_file_pread()
when working with IO_CACHE's, don't access IO_CACHE::file directly
Diffstat (limited to 'include/my_sys.h')
-rw-r--r-- | include/my_sys.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/my_sys.h b/include/my_sys.h index 8e0e34f2796..dfd45b18f26 100644 --- a/include/my_sys.h +++ b/include/my_sys.h @@ -610,6 +610,7 @@ static inline size_t my_b_bytes_in_cache(const IO_CACHE *info) int my_b_copy_to_file(IO_CACHE *cache, FILE *file); my_off_t my_b_append_tell(IO_CACHE* info); my_off_t my_b_safe_tell(IO_CACHE* info); /* picks the correct tell() */ +int my_b_pread(IO_CACHE *info, uchar *Buffer, size_t Count, my_off_t pos); typedef uint32 ha_checksum; extern ulong my_crc_dbug_check; |