Procházet zdrojové kódy

retry writes when it appears the system is blocked, perhaps during a resynchronization.

(Logical change 1.151)


git-svn-id: http://svn.fedorahosted.org/svn/corosync/trunk@533 fd59a12c-fef9-0310-b244-a6a79926bd2f
Steven Dake před 21 roky
rodič
revize
cddf94a28d
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      test/ckptbench.c

+ 4 - 0
test/ckptbench.c

@@ -173,10 +173,14 @@ void ckpt_benchmark (SaCkptCheckpointHandleT checkpointHandle,
 		/*
 		 * Test checkpoint write
 		 */
+retry:
 		error = saCkptCheckpointWrite (checkpointHandle,
 			WriteVectorElements,
 			1,
 			&erroroneousVectorIndex);
+		if (error == SA_AIS_ERR_TRY_AGAIN) {
+			goto retry;
+		}
 		if (error != SA_OK) {
 			printf ("saCkptCheckpointWrite result %d (should be 1)\n", error);
 			exit (1);