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