1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00

add a sync wrapper for the getpnn control

(This used to be ctdb commit 01c2acdf3cb29bb44c74d9d792cf1d3706534ad2)
This commit is contained in:
Ronnie Sahlberg 2010-06-02 10:36:19 +10:00
parent 8666094e92
commit 212ee831b8

View File

@ -92,3 +92,20 @@ struct ctdb_db *ctdb_attachdb(struct ctdb_connection *ctdb,
}
return ret;
}
int ctdb_getpnn(struct ctdb_connection *ctdb,
uint32_t destnode, uint32_t *pnn)
{
struct ctdb_request *req;
bool done = false;
int ret = -1;
req = wait_for(ctdb,
ctdb_getpnn_send(ctdb, destnode, set, &done),
&done);
if (req != NULL) {
ret = ctdb_getpnn_recv(req, pnn);
ctdb_request_free(req);
}
return ret;
}