pre function rather than retrying it until we get stuck!
Version 2.02.29 -
==================================
+ Stop clvmd going haywire if a pre_function fails.
Convert some vg_reads into vg_lock_and_reads.
Avoid nested vg_reads when processing PVs in VGs and fix associated locking.
Accept sizes with --readahead argument.
break;
} while(1);
- if (status)
- continue; /* Wait for another PRE command */
+ if (status) {
+ client->bits.localsock.state = POST_COMMAND;
+ goto next_pre;
+ }
/* We may need to wait for the condition variable before running the post command */
pthread_mutex_lock(&client->bits.localsock.mutex);
log_error("Error sending to pipe: %m\n");
break;
} while(1);
-
+next_pre:
DEBUGLOG("Waiting for next pre command\n");
pthread_mutex_lock(&client->bits.localsock.mutex);