Send CPG_REASON_PROCDOWN on process left

Our manual pages are clear:

CPG_REASON_PROCDOWN - the process left a group without calling
cpg_leave().

Currently, we are sending CPG_REASON_LEAVE in such situation.

Regards,
  Honza
commit ca9d653dba140c5e6d2b9c7fec87e6291a5aeae6
Author: Jan Friesse <[email protected]>
Date:   Tue Jun 15 13:04:32 2010 +0200

    Send CPG_REASON_PROCDOWN on process left
    
    Our manual pages are clear:
    
    CPG_REASON_PROCDOWN - the process left a group without calling
    cpg_leave().

diff --git a/trunk/services/cpg.c b/trunk/services/cpg.c
index eb4b509..94f29eb 100644
--- a/trunk/services/cpg.c
+++ b/trunk/services/cpg.c
@@ -857,7 +857,7 @@ static int cpg_lib_exit_fn (void *conn)
 
        if (cpd->group_name.length > 0) {
                cpg_node_joinleave_send (cpd->pid, &cpd->group_name,
-                               MESSAGE_REQ_EXEC_CPG_PROCLEAVE, 
CONFCHG_CPG_REASON_LEAVE);
+                               MESSAGE_REQ_EXEC_CPG_PROCLEAVE, 
CONFCHG_CPG_REASON_PROCDOWN);
        }
 
        cpg_pd_finalize (cpd);
commit 55e057ee703051cf6712ccb18b78224d3bbbc9fa
Author: Jan Friesse <[email protected]>
Date:   Tue Jun 15 13:12:49 2010 +0200

    Send CPG_REASON_PROCDOWN on process left
    
    Our manual pages are clear:
    
    CPG_REASON_PROCDOWN - the process left a group without calling
    cpg_leave().

diff --git a/branches/whitetank/exec/cpg.c b/branches/whitetank/exec/cpg.c
index 5323db2..61b6623 100644
--- a/branches/whitetank/exec/cpg.c
+++ b/branches/whitetank/exec/cpg.c
@@ -534,7 +534,7 @@ static int cpg_lib_exit_fn (void *conn)
 
        if (cpd->group_name.length > 0) {
                cpg_node_joinleave_send (cpd->pid, &cpd->group_name,
-                               MESSAGE_REQ_EXEC_CPG_PROCLEAVE, 
CONFCHG_CPG_REASON_LEAVE);
+                               MESSAGE_REQ_EXEC_CPG_PROCLEAVE, 
CONFCHG_CPG_REASON_PROCDOWN);
        }
        list_del (&cpd->list);
        openais_conn_refcount_dec (conn);
_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to