mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
ctdb-client: Expose ctdb_ltdb_fetch in client API
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
a66063069e
commit
d9b6cd0236
@ -752,6 +752,10 @@ int ctdb_db_traverse(struct ctdb_db_context *db, bool readonly,
|
||||
bool extract_header,
|
||||
ctdb_rec_parser_func_t parser, void *private_data);
|
||||
|
||||
int ctdb_ltdb_fetch(struct ctdb_db_context *db, TDB_DATA key,
|
||||
struct ctdb_ltdb_header *header,
|
||||
TALLOC_CTX *mem_ctx, TDB_DATA *data);
|
||||
|
||||
struct tevent_req *ctdb_fetch_lock_send(TALLOC_CTX *mem_ctx,
|
||||
struct tevent_context *ev,
|
||||
struct ctdb_client_context *client,
|
||||
|
@ -687,9 +687,9 @@ int ctdb_db_traverse(struct ctdb_db_context *db, bool readonly,
|
||||
return state.error;
|
||||
}
|
||||
|
||||
static int ctdb_ltdb_fetch(struct ctdb_db_context *db, TDB_DATA key,
|
||||
struct ctdb_ltdb_header *header,
|
||||
TALLOC_CTX *mem_ctx, TDB_DATA *data)
|
||||
int ctdb_ltdb_fetch(struct ctdb_db_context *db, TDB_DATA key,
|
||||
struct ctdb_ltdb_header *header,
|
||||
TALLOC_CTX *mem_ctx, TDB_DATA *data)
|
||||
{
|
||||
TDB_DATA rec;
|
||||
int ret;
|
||||
|
Loading…
Reference in New Issue
Block a user