diff options
author | unknown <knielsen@knielsen-hq.org> | 2011-03-31 14:29:23 +0200 |
---|---|---|
committer | unknown <knielsen@knielsen-hq.org> | 2011-03-31 14:29:23 +0200 |
commit | bc9f6021ff424ff7724183bd4ad95796a3b14053 (patch) | |
tree | 89fe80ca2456d224e512db3bf21a0ba7948c6ee4 /include | |
parent | a2d921be3634ceff4ab4c67f57b27a481d4a28df (diff) | |
download | mariadb-git-bc9f6021ff424ff7724183bd4ad95796a3b14053.tar.gz |
MWL#116: After-review fixes.
Diffstat (limited to 'include')
-rw-r--r-- | include/my_sys.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/my_sys.h b/include/my_sys.h index 2f8a44fedc0..7333c10df35 100644 --- a/include/my_sys.h +++ b/include/my_sys.h @@ -554,6 +554,8 @@ typedef int (*qsort2_cmp)(const void *, const void *, const void *); #define my_b_tell(info) ((info)->pos_in_file + \ (size_t) (*(info)->current_pos - (info)->request_pos)) +#define my_b_write_tell(info) ((info)->pos_in_file + \ + ((info)->write_pos - (info)->write_buffer)) #define my_b_get_buffer_start(info) (info)->request_pos #define my_b_get_bytes_in_buffer(info) (char*) (info)->read_end - \ |