From 862b707f43a8c4e028924483eed636496c5ef198 Mon Sep 17 00:00:00 2001 From: inaam <> Date: Sat, 17 May 2008 22:31:11 +0000 Subject: [PATCH] branches/zip: Fixed compilation warning introduced during POSIX AIO clean up patch. Spotted by: Sunny and Vasil --- os/os0file.c | 60 ---------------------------------------------------- 1 file changed, 60 deletions(-) diff --git a/os/os0file.c b/os/os0file.c index f92ff959cf7..7667d9ea1b3 100644 --- a/os/os0file.c +++ b/os/os0file.c @@ -3090,66 +3090,6 @@ os_aio_get_array_and_local_segment( return(segment); } -/*********************************************************************** -Gets an integer value designating a specified aio array. This is used -to give numbers to signals in Posix aio. */ - -#if !defined(WIN_ASYNC_IO) -static -ulint -os_aio_get_array_no( -/*================*/ - os_aio_array_t* array) /* in: aio array */ -{ - if (array == os_aio_ibuf_array) { - - return(0); - - } else if (array == os_aio_log_array) { - - return(1); - - } else if (array == os_aio_read_array) { - - return(2); - } else if (array == os_aio_write_array) { - - return(3); - } else { - ut_error; - - return(0); - } -} - -/*********************************************************************** -Gets the aio array for its number. */ -static -os_aio_array_t* -os_aio_get_array_from_no( -/*=====================*/ - /* out: aio array */ - ulint n) /* in: array number */ -{ - if (n == 0) { - return(os_aio_ibuf_array); - } else if (n == 1) { - - return(os_aio_log_array); - } else if (n == 2) { - - return(os_aio_read_array); - } else if (n == 3) { - - return(os_aio_write_array); - } else { - ut_error; - - return(NULL); - } -} -#endif /* if !defined(WIN_ASYNC_IO) */ - /*********************************************************************** Requests for a slot in the aio array. If no slot is available, waits until not_full-event becomes signaled. */