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:
parent
50bd249990
commit
a6b13b21c1
@ -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;
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user