diff options
author | mronstrom@mysql.com <> | 2005-07-18 13:31:02 +0200 |
---|---|---|
committer | mronstrom@mysql.com <> | 2005-07-18 13:31:02 +0200 |
commit | 67087e2aa741de20f93f5615cd869a606891134b (patch) | |
tree | 49a4797f25aaf50e6e6c5ab9d193608d969a612e /include/queues.h | |
parent | 8b90390ed54c1a1d195446596f2d0ab9453ab22f (diff) | |
download | mariadb-git-67087e2aa741de20f93f5615cd869a606891134b.tar.gz |
Patch for push of wl1354 Partitioning
Diffstat (limited to 'include/queues.h')
-rw-r--r-- | include/queues.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/queues.h b/include/queues.h index 02ab768198e..a8b676b763c 100644 --- a/include/queues.h +++ b/include/queues.h @@ -41,6 +41,9 @@ typedef struct st_queue { #define queue_element(queue,index) ((queue)->root[index+1]) #define queue_end(queue) ((queue)->root[(queue)->elements]) #define queue_replaced(queue) _downheap(queue,1) +#define queue_set_cmp_arg(queue, set_arg) (queue)->first_cmp_arg= set_arg +#define queue_set_max_at_top(queue, set_arg) \ + (queue)->max_at_top= set_arg ? (-1 ^ 1) : 0 typedef int (*queue_compare)(void *,byte *, byte *); int init_queue(QUEUE *queue,uint max_elements,uint offset_to_key, |