MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Jimmy Yang Date:July 8 2010 7:07am
Subject:bzr commit into mysql-trunk-innodb branch (jimmy.yang:3133) Bug#54764
View as plain text  
#At file:///home/jy/work/mysql5.5_7/mysql-trunk-innodb/ based on revid:jimmy.yang@stripped

 3133 Jimmy Yang	2010-07-08
      Fix Bug #54764 memory allocated in os_aio_array_create is not
      freed at shutdown
      
      rb://395, approved by Sunny Bains

    modified:
      storage/innobase/os/os0file.c
=== modified file 'storage/innobase/os/os0file.c'
--- a/storage/innobase/os/os0file.c	revid:jimmy.yang@stripped
+++ b/storage/innobase/os/os0file.c	revid:jimmy.yang@stripped
@@ -3233,6 +3233,9 @@ os_aio_array_create(
 #endif
 
 #if defined(LINUX_NATIVE_AIO)
+	array->aio_ctx = NULL;
+	array->aio_events = NULL;
+
 	/* If we are not using native aio interface then skip this
 	part of initialization. */
 	if (!srv_use_native_aio) {
@@ -3313,6 +3316,13 @@ os_aio_array_free(
 	os_event_free(array->not_full);
 	os_event_free(array->is_empty);
 
+#if defined(LINUX_NATIVE_AIO)
+	if (srv_use_native_aio) {
+		ut_free(array->aio_events);
+		ut_free(array->aio_ctx);
+	}
+#endif /* LINUX_NATIVE_AIO */
+
 	ut_free(array->slots);
 	ut_free(array);
 }


Attachment: [text/bzr-bundle] bzr/jimmy.yang@oracle.com-20100708070559-mnzs6ta5ayoozxgx.bundle
Thread
bzr commit into mysql-trunk-innodb branch (jimmy.yang:3133) Bug#54764Jimmy Yang8 Jul