summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorPraveenkumar Hulakund <praveenkumar.hulakund@oracle.com>2013-07-24 15:44:41 +0530
committerPraveenkumar Hulakund <praveenkumar.hulakund@oracle.com>2013-07-24 15:44:41 +0530
commit03940a7bd88131d3d9eacd1b2827f346d24e1483 (patch)
tree1f9d55d7f07f747fa85ed65a74157afa6be9daf5 /mysys
parentb5071f8229f72efa447caa67bc38c8d70fdad5f3 (diff)
downloadmariadb-git-03940a7bd88131d3d9eacd1b2827f346d24e1483.tar.gz
Bug#16865959 - PLEASE BACKPORT BUG 14749800.
Since log_throttle is not available in 5.5. Logging of error message for failure of thread to create new connection in "create_thread_to_handle_connection" is not backported. Since, function "my_plugin_log_message" is not available in 5.5 version and since there is incompatibility between sql_print_XXX function compiled with g++ and alog files with gcc to use sql_print_error, changes related to audit log plugin is not backported.
Diffstat (limited to 'mysys')
-rw-r--r--mysys/my_winthread.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mysys/my_winthread.c b/mysys/my_winthread.c
index ac30cf14268..ae7c0926034 100644
--- a/mysys/my_winthread.c
+++ b/mysys/my_winthread.c
@@ -69,6 +69,7 @@ int pthread_create(pthread_t *thread_id, const pthread_attr_t *attr,
uintptr_t handle;
struct thread_start_parameter *par;
unsigned int stack_size;
+ int error_no;
DBUG_ENTER("pthread_create");
par= (struct thread_start_parameter *)malloc(sizeof(*par));
@@ -89,9 +90,10 @@ int pthread_create(pthread_t *thread_id, const pthread_attr_t *attr,
DBUG_RETURN(0);
error_return:
+ error_no= errno;
DBUG_PRINT("error",
- ("Can't create thread to handle request (error %d)",errno));
- DBUG_RETURN(-1);
+ ("Can't create thread to handle request (error %d)",error_no));
+ DBUG_RETURN(error_no);
}