const uint8_t *msg, size_t msglen,
void *private_data),
void *private_data);
-NTSTATUS ctdbd_probe(void);
+NTSTATUS ctdbd_probe(const char *sockname, int timeout);
#endif /* _CTDBD_CONN_H */
#include "lib/dbwrap/dbwrap_ctdb.h"
#include "torture/proto.h"
-NTSTATUS ctdbd_probe(void)
+NTSTATUS ctdbd_probe(const char *sockname, int timeout)
{
return NT_STATUS_NOT_IMPLEMENTED;
}
return status;
}
-NTSTATUS ctdbd_probe(void)
+NTSTATUS ctdbd_probe(const char *sockname, int timeout)
{
/*
* Do a very early check if ctdbd is around to avoid an abort and core
struct ctdbd_connection *conn = NULL;
NTSTATUS status;
- status = ctdbd_messaging_connection(talloc_tos(), lp_ctdbd_socket(),
- lp_ctdb_timeout(), &conn);
+ status = ctdbd_messaging_connection(talloc_tos(), sockname, timeout,
+ &conn);
/*
* We only care if we can connect.
if (lp_clustering()) {
NTSTATUS status;
- status = ctdbd_probe();
+ status = ctdbd_probe(lp_ctdbd_socket(), lp_ctdb_timeout());
if (!NT_STATUS_IS_OK(status)) {
DEBUG(0, ("clustering=yes but ctdbd connect failed: "
"%s\n", nt_errstr(status)));