Author: damitha
Date: Thu Apr 26 01:10:39 2007
New Revision: 532649
URL: http://svn.apache.org/viewvc?view=rev&rev=532649
Log:
Before storing the application message context set the operation context's
is_in_use attribute to true. After the message is acked set this to false.
Otherwise when thread mutext of the operation context is destroyed server
crashes
Modified:
webservices/sandesha/trunk/c/src/msgprocessors/app_msg_processor.c
webservices/sandesha/trunk/c/src/storage/mysql/permanent_storage_mgr.c
Modified: webservices/sandesha/trunk/c/src/msgprocessors/app_msg_processor.c
URL:
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/msgprocessors/app_msg_processor.c?view=diff&rev=532649&r1=532648&r2=532649
==============================================================================
--- webservices/sandesha/trunk/c/src/msgprocessors/app_msg_processor.c
(original)
+++ webservices/sandesha/trunk/c/src/msgprocessors/app_msg_processor.c Thu Apr
26 01:10:39 2007
@@ -248,6 +248,7 @@
}
op_ctx = axis2_msg_ctx_get_op_ctx(msg_ctx, env);
+ axis2_op_ctx_set_in_use(op_ctx, env, AXIS2_TRUE);
axis2_op_ctx_set_response_written(op_ctx, env, AXIS2_TRUE);
conf_ctx = axis2_msg_ctx_get_conf_ctx(msg_ctx, env);
storage_mgr = sandesha2_utils_get_storage_mgr(env, conf_ctx,
Modified: webservices/sandesha/trunk/c/src/storage/mysql/permanent_storage_mgr.c
URL:
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/storage/mysql/permanent_storage_mgr.c?view=diff&rev=532649&r1=532648&r2=532649
==============================================================================
--- webservices/sandesha/trunk/c/src/storage/mysql/permanent_storage_mgr.c
(original)
+++ webservices/sandesha/trunk/c/src/storage/mysql/permanent_storage_mgr.c Thu
Apr 26 01:10:39 2007
@@ -584,6 +584,9 @@
AXIS2_HASH_KEY_STRING);
if(entry)
{
+ axis2_op_ctx_t *op_ctx =
+ axis2_msg_ctx_get_op_ctx((axis2_msg_ctx_t *) entry, env);
+ axis2_op_ctx_set_in_use(op_ctx, env, AXIS2_FALSE);
axutil_hash_set(storage_mgr_impl->msg_ctx_map, key,
AXIS2_HASH_KEY_STRING, NULL);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]