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

defect 744
return SA_AIS_ERR_EXIST in saCkptSectionCreate if maxSections == 1


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

Steven Dake 20 лет назад
Родитель
Сommit
2347f5ab8e
1 измененных файлов с 5 добавлено и 0 удалено
  1. 5 0
      exec/ckpt.c

+ 5 - 0
exec/ckpt.c

@@ -2100,6 +2100,11 @@ static int message_handler_req_exec_ckpt_sectioncreate (void *message, struct in
 		goto error_exit;
 		goto error_exit;
 	}
 	}
 
 
+	if (ckptCheckpoint->checkpointCreationAttributes.maxSections == 1) {
+		error = SA_AIS_ERR_EXIST;
+		goto error_exit;
+	}
+
 	/*
 	/*
 	 * Determine if user-specified checkpoint ID already exists
 	 * Determine if user-specified checkpoint ID already exists
 	 */
 	 */