From 6cf96ff43155346589e19c1bb2fd723be74f1f12 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 10 May 2000 06:02:37 +0000 Subject: - add some reserved space to every tdb, this will be used for semaphores and future expansion - update tdb version number to 2 (This used to be commit 5e04885b86791e6ef8b4a316e64d56c6eb05f35d) --- source3/tdb/tdb.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/tdb/tdb.c') diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c index 6ad32437ef..35951a0d17 100644 --- a/source3/tdb/tdb.c +++ b/source3/tdb/tdb.c @@ -35,7 +35,7 @@ #include "includes.h" #endif -#define TDB_VERSION (0x26011967 + 1) +#define TDB_VERSION (0x26011967 + 2) #define TDB_MAGIC (0x26011999U) #define TDB_FREE_MAGIC (~TDB_MAGIC) #define TDB_ALIGN 4 @@ -43,7 +43,8 @@ #define DEFAULT_HASH_SIZE 131 #define TDB_PAGE_SIZE 0x2000 #define TDB_LEN_MULTIPLIER 10 -#define FREELIST_TOP (sizeof(struct tdb_header)) +#define TDB_RESERVED 1024 +#define FREELIST_TOP (TDB_RESERVED + sizeof(struct tdb_header)) #define LOCK_SET 1 #define LOCK_CLEAR 0 -- cgit