Author: damitha
Date: Fri Jun 20 23:26:03 2008
New Revision: 670151

URL: http://svn.apache.org/viewvc?rev=670151&view=rev
Log:
Adding useful comments

Modified:
    
webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/msgprocessors/app_msg_processor.c
    
webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/util/ack_mgr.c

Modified: 
webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/msgprocessors/app_msg_processor.c
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/msgprocessors/app_msg_processor.c?rev=670151&r1=670150&r2=670151&view=diff
==============================================================================
--- 
webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/msgprocessors/app_msg_processor.c
 (original)
+++ 
webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/msgprocessors/app_msg_processor.c
 Fri Jun 20 23:26:03 2008
@@ -1801,6 +1801,9 @@
         sandesha2_msg_ctx_free(ack_rm_msg_ctx, env);
     }
 
+    /* Since we have stored this in database and when piggybacking it is only 
taken from database
+     * we can free this now.
+     */
     if(ack_msg_ctx)
     {
         axis2_msg_ctx_free(ack_msg_ctx, env);

Modified: 
webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/util/ack_mgr.c
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/util/ack_mgr.c?rev=670151&r1=670150&r2=670151&view=diff
==============================================================================
--- 
webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/util/ack_mgr.c
 (original)
+++ 
webservices/sandesha/tags/sandesha2/c/worker_thread_removed-23may2008/src/util/ack_mgr.c
 Fri Jun 20 23:26:03 2008
@@ -363,7 +363,8 @@
             }
 
             seq_ack = sandesha2_msg_ctx_get_seq_ack(ack_rm_msg_ctx, env);
-            /* To avoid double free.*/
+            /* When we set seq_ack to target rm message context taken from 
acknowledgment rm message 
+             * context ,there happen freeing at both contexts if we do not 
increment ref.*/
             sandesha2_seq_ack_increment_ref(seq_ack, env);
             sandesha2_msg_ctx_set_seq_ack(target_rm_msg_ctx, env, seq_ack);
             sandesha2_msg_ctx_add_soap_envelope(target_rm_msg_ctx, env);



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to