X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb2%2Fprivate.h;h=369511cd5d2f86eb11748df04d932bf8fb85d461;hb=0753972a623c7bf24f13578a5ceb3995ea307876;hp=14d319ce7aa6a128d9630b6676a517a2c0461887;hpb=0f95489bd34ab05869e0bfaabf45149b3b161f28;p=ccan diff --git a/ccan/tdb2/private.h b/ccan/tdb2/private.h index 14d319ce..369511cd 100644 --- a/ccan/tdb2/private.h +++ b/ccan/tdb2/private.h @@ -222,7 +222,7 @@ static inline unsigned frec_ftable(const struct tdb_free_record *f) struct tdb_recovery_record { uint64_t magic; - /* Length of record. */ + /* Length of record (add this header to get total length). */ uint64_t max_len; /* Length used. */ uint64_t len; @@ -465,7 +465,9 @@ tdb_off_t alloc(struct tdb_context *tdb, size_t keylen, size_t datalen, /* Put this record in a free list. */ enum TDB_ERROR add_free_record(struct tdb_context *tdb, - tdb_off_t off, tdb_len_t len_with_header); + tdb_off_t off, tdb_len_t len_with_header, + enum tdb_lock_flags waitflag, + bool coalesce_ok); /* Set up header for a used/ftable/htable/chain record. */ enum TDB_ERROR set_header(struct tdb_context *tdb,