Explorar o código

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 %!s(int64=20) %!d(string=hai) anos
pai
achega
2347f5ab8e
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  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;
 	}
 
+	if (ckptCheckpoint->checkpointCreationAttributes.maxSections == 1) {
+		error = SA_AIS_ERR_EXIST;
+		goto error_exit;
+	}
+
 	/*
 	 * Determine if user-specified checkpoint ID already exists
 	 */