Jelajahi Sumber

Document SAM_RECOVERY_POLICY_CMAP

Also all irelevant references for SAM_RECOVERY_POLICY_CONFDB are
corrected.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Steven Dake <sdake@redhat.com>
Jan Friesse 14 tahun lalu
induk
melakukan
c92225393b
2 mengubah file dengan 7 tambahan dan 4 penghapusan
  1. 5 2
      man/sam_initialize.3.in
  2. 2 2
      man/sam_mark_failed.3.in

+ 5 - 2
man/sam_initialize.3.in

@@ -71,6 +71,7 @@ The \fIrecovery_policy\fR is defined as type:
         SAM_RECOVERY_POLICY_QUORUM = 0x08,
         SAM_RECOVERY_POLICY_QUORUM_QUIT = SAM_RECOVERY_POLICY_QUORUM | SAM_RECOVERY_POLICY_QUIT,
         SAM_RECOVERY_POLICY_QUORUM_RESTART = SAM_RECOVERY_POLICY_QUORUM | SAM_RECOVERY_POLICY_RESTART,
+        SAM_RECOVERY_POLICY_CMAP = 0x10,
         SAM_RECOVERY_POLICY_CONFDB = 0x10,
   } sam_recovery_policy_t;
 .fi
@@ -96,8 +97,10 @@ SAM_RECOVERY_POLICY_QUORUM_RESTART
 same as \fISAM_RECOVERY_POLICY_RESTART\fR but \fBsam_start (3)\fR will block until corosync becomes
 quorate and process will be restarted if quorum is lost.
 .TP
-SAM_RECOVERY_POLICY_CONFDB
-is not policy. Used only as flag meaning confdb integration. It can be used with all previous policies.
+SAM_RECOVERY_POLICY_CMAP
+is not policy. Used only as flag meaning cmap integration. It can be used with all previous policies.
+For backward compatibility, SAM_RECOVERY_POLICY_CONFDB with same meaning as
+\fISAM_RECOVERY_POLICY_CMAP\fR is also provided.
 
 .P
 To perform event driven healthchecking, \fBsam_register(3)\fR and

+ 2 - 2
man/sam_mark_failed.3.in

@@ -46,7 +46,7 @@ sam_mark_failed \- Mark process failed
 
 .SH DESCRIPTION
 .P
-The \fBsam_mark_failed\fR function is used with SAM_RECOVERY_POLICY_CONFDB mostly
+The \fBsam_mark_failed\fR function is used with SAM_RECOVERY_POLICY_CMAP mostly
 together with SAM_RECOVERY_POLICY_RESTART to mark process failed. Process marked
 failed is killed without sending warn signal and control process will exit
 as with SAM_RECOVERY_POLICY_QUIT policy. Condb key state will be set to failed so
@@ -63,7 +63,7 @@ library was not initialized by calling \fBsam_initialize(3)\fR or was already fi
 
 .TP
 CS_ERR_INVALID_PARAM
-recovery policy doesn't has SAM_RECOVERY_POLICY_CONFDB flag set
+recovery policy doesn't has SAM_RECOVERY_POLICY_CMAP flag set
 
 .TP
 CS_ERR_LIBRARY