summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <knielsen@knielsen-hq.org>2011-03-31 14:29:23 +0200
committerunknown <knielsen@knielsen-hq.org>2011-03-31 14:29:23 +0200
commitbc9f6021ff424ff7724183bd4ad95796a3b14053 (patch)
tree89fe80ca2456d224e512db3bf21a0ba7948c6ee4 /include
parenta2d921be3634ceff4ab4c67f57b27a481d4a28df (diff)
downloadmariadb-git-bc9f6021ff424ff7724183bd4ad95796a3b14053.tar.gz
MWL#116: After-review fixes.
Diffstat (limited to 'include')
-rw-r--r--include/my_sys.h2
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 - \