}
static struct ctdb_cluster_mutex_handle *
-ctdb_cluster_mutex(struct ctdb_context *ctdb, int timeout)
+ctdb_cluster_mutex(struct ctdb_context *ctdb,
+ const char *argstring,
+ int timeout)
{
struct ctdb_cluster_mutex_handle *h;
char **args;
set_close_on_exec(h->fd[0]);
/* Create arguments for lock helper */
- if (!cluster_mutex_helper_args(h, ctdb->recovery_lock_file, &args)) {
+ if (!cluster_mutex_helper_args(h, argstring, &args)) {
close(h->fd[0]);
close(h->fd[1]);
talloc_free(h);
return 0;
}
- h = ctdb_cluster_mutex(ctdb, 5);
+ h = ctdb_cluster_mutex(ctdb, ctdb->recovery_lock_file, 5);
if (h == NULL) {
return -1;
}
.status = '0',
};
- h = ctdb_cluster_mutex(ctdb, 0);
+ h = ctdb_cluster_mutex(ctdb, ctdb->recovery_lock_file, 0);
if (h == NULL) {
return -1;
}