X-Git-Url: https://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Ftdb2%2Fprivate.h;h=b77d70c3ce6b0afa47eec11e2838a4cbbf4284ca;hp=8601a9a48e6497d0a93e3dfefe702ef897053a8e;hb=539f1af037858b905c50c560f2a608555d8457ff;hpb=115648946c7a78e87fb45eac6c1759a347d4c7f8 diff --git a/ccan/tdb2/private.h b/ccan/tdb2/private.h index 8601a9a4..b77d70c3 100644 --- a/ccan/tdb2/private.h +++ b/ccan/tdb2/private.h @@ -66,7 +66,6 @@ typedef uint64_t tdb_off_t; #define TDB_VERSION ((uint64_t)(0x26011967 + 7)) #define TDB_MAGIC ((uint64_t)0x1999) #define TDB_FREE_MAGIC ((uint64_t)0xFE) -#define TDB_COALESCING_MAGIC ((uint64_t)0xFD) #define TDB_HASH_MAGIC (0xA1ABE11A01092008ULL) #define TDB_RECOVERY_MAGIC (0xf53bc0e7ad124589ULL) #define TDB_RECOVERY_INVALID_MAGIC (0x0ULL) @@ -117,6 +116,9 @@ typedef uint64_t tdb_off_t; #define TDB_MIN_DATA_LEN \ (sizeof(struct tdb_free_record) - sizeof(struct tdb_used_record)) +/* Indicates this entry is not on an flist (can happen during coalescing) */ +#define TDB_FLIST_NONE ((1ULL << TDB_OFF_UPPER_STEAL) - 1) + #if !HAVE_BSWAP_64 static inline uint64_t bswap_64(uint64_t x) {