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

I discovered that our SaAisErrorT is incorrect. I have included a patch
to fix that. The SA_AIS_ERR_BAD_CHECKPOINT code doesn't exist. I
replaced it with SA_AIS_ERR_BAD_OPERATION.


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

Mark Haverkamp 20 лет назад
Родитель
Сommit
cbc8feca89
2 измененных файлов с 3 добавлено и 3 удалено
  1. 1 1
      exec/ckpt.c
  2. 2 2
      include/ais_types.h

+ 1 - 1
exec/ckpt.c

@@ -1251,7 +1251,7 @@ static int recovery_checkpoint_open(SaNameT *checkpointName,
 	 * If the checkpoint has been unlinked, it is an invalid name
 	 */
 	if (ckptCheckpoint->unlinked) {
-		error = SA_AIS_ERR_BAD_CHECKPOINT; /* Is this the correct return ? */
+		error = SA_AIS_ERR_BAD_OPERATION; /* Is this the correct return ? */
 		goto error_exit;
 	}
 	

+ 2 - 2
include/ais_types.h

@@ -144,8 +144,8 @@ typedef enum {
 	SA_AIS_ERR_MESSAGE_ERROR = 22,
 	SA_AIS_ERR_QUEUE_FULL = 23,
 	SA_AIS_ERR_QUEUE_NOT_AVAILABLE = 24,
-	SA_AIS_ERR_BAD_CHECKPOINT = 25,
-	SA_AIS_ERR_BAD_FLAGS = 26,
+	SA_AIS_ERR_BAD_FLAGS = 25,
+	SA_AIS_ERR_TOO_BIG = 26,
 	SA_AIS_ERR_NO_SECTIONS = 27
 } SaAisErrorT;