Просмотр исходного кода

defect 707
if checkpoint synchronize executedd with timeout=0, TIMEOUT error not returned


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@745 fd59a12c-fef9-0310-b244-a6a79926bd2f

Steven Dake 20 лет назад
Родитель
Сommit
1939c24938
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      lib/ckpt.c

+ 4 - 0
lib/ckpt.c

@@ -1574,6 +1574,10 @@ saCkptCheckpointSynchronize (
 	struct req_lib_ckpt_checkpointsynchronize req_lib_ckpt_checkpointsynchronize;
 	struct res_lib_ckpt_checkpointsynchronize res_lib_ckpt_checkpointsynchronize;
 
+	if (timeout == 0) {
+		return (SA_AIS_ERR_TIMEOUT);
+	}
+
 	error = saHandleInstanceGet (&checkpointHandleDatabase, checkpointHandle,
 		(void *)&ckptCheckpointInstance);
 	if (error != SA_AIS_OK) {