1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

client: add accessor function ctdb_header_from_record_handle().

(This used to be ctdb commit cf57efd440ccc3db381386f4749bfcbf8ac5ecae)
This commit is contained in:
Michael Adam 2010-12-21 15:29:23 +01:00
parent 50bd249990
commit a6b13b21c1
2 changed files with 11 additions and 0 deletions

View File

@ -4234,3 +4234,12 @@ int ctdb_ctrl_getstathistory(struct ctdb_context *ctdb, struct timeval timeout,
return 0;
}
struct ctdb_ltdb_header *ctdb_header_from_record_handle(struct ctdb_record_handle *h)
{
if (h == NULL) {
return NULL;
}
return &h->header;
}

View File

@ -1403,4 +1403,6 @@ int32_t ctdb_local_schedule_for_deletion(struct ctdb_db_context *ctdb_db,
const struct ctdb_ltdb_header *hdr,
TDB_DATA key);
struct ctdb_ltdb_header *ctdb_header_from_record_handle(struct ctdb_record_handle *h);
#endif