diff options
author | serg@serg.mylan <> | 2003-10-06 14:11:16 +0200 |
---|---|---|
committer | serg@serg.mylan <> | 2003-10-06 14:11:16 +0200 |
commit | 2667d7f8cc34d7b568ebcfce3e74f25bde6a448e (patch) | |
tree | 7bffd47192fc8d22df42f124ba543de3125a5375 /include | |
parent | 0ce865b6b497bff949039c707a3c0ee7764ba341 (diff) | |
download | mariadb-git-2667d7f8cc34d7b568ebcfce3e74f25bde6a448e.tar.gz |
fix_max_connections to resize alarm_queue (Bug #1435)
Diffstat (limited to 'include')
-rw-r--r-- | include/queues.h | 1 | ||||
-rw-r--r-- | include/thr_alarm.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/queues.h b/include/queues.h index 699705d0869..ac15b09719b 100644 --- a/include/queues.h +++ b/include/queues.h @@ -49,6 +49,7 @@ int init_queue(QUEUE *queue,uint max_elements,uint offset_to_key, int reinit_queue(QUEUE *queue,uint max_elements,uint offset_to_key, pbool max_at_top, queue_compare compare, void *first_cmp_arg); +int resize_queue(QUEUE *queue, uint max_elements); void delete_queue(QUEUE *queue); void queue_insert(QUEUE *queue,byte *element); byte *queue_remove(QUEUE *queue,uint idx); diff --git a/include/thr_alarm.h b/include/thr_alarm.h index 8ff4472f700..a54c192b1ed 100644 --- a/include/thr_alarm.h +++ b/include/thr_alarm.h @@ -100,6 +100,7 @@ typedef struct st_alarm { #define thr_alarm_init(A) (*(A))=0 #define thr_alarm_in_use(A) (*(A)!= 0) void init_thr_alarm(uint max_alarm); +void resize_thr_alarm(uint max_alarms); my_bool thr_alarm(thr_alarm_t *alarmed, uint sec, ALARM *buff); void thr_alarm_kill(pthread_t thread_id); void thr_end_alarm(thr_alarm_t *alarmed); |