Rev 715: fixed data offset definition in http://samba.org/~tridge/ctdb

tridge at samba.org tridge at samba.org
Sat Jan 5 01:10:18 GMT 2008


------------------------------------------------------------
revno: 715
revision-id:tridge at samba.org-20080105011018-ad8nr1x7ot1q3ch5
parent: tridge at samba.org-20080105010929-v8lbmtct6w5yygqq
committer: Andrew Tridgell <tridge at samba.org>
branch nick: tridge.stable
timestamp: Sat 2008-01-05 12:10:18 +1100
message:
  fixed data offset definition
modified:
  lib/tdb/common/tdb_private.h   tdb_private.h-20070220022425-m1wibgjq7n5hahs6-10
=== modified file 'lib/tdb/common/tdb_private.h'
--- a/lib/tdb/common/tdb_private.h	2008-01-04 22:33:39 +0000
+++ b/lib/tdb/common/tdb_private.h	2008-01-05 01:10:18 +0000
@@ -61,7 +61,7 @@
 #define TDB_BAD_MAGIC(r) ((r)->magic != TDB_MAGIC && !TDB_DEAD(r))
 #define TDB_HASH_TOP(hash) (FREELIST_TOP + (BUCKET(hash)+1)*sizeof(tdb_off_t))
 #define TDB_HASHTABLE_SIZE(tdb) ((tdb->header.hash_size+1)*sizeof(tdb_off_t))
-#define TDB_DATA_START(hash_size) TDB_HASH_TOP(hash_size-1)
+#define TDB_DATA_START(hash_size) TDB_HASH_TOP(hash_size)
 #define TDB_RECOVERY_HEAD offsetof(struct tdb_header, recovery_start)
 #define TDB_SEQNUM_OFS    offsetof(struct tdb_header, sequence_number)
 #define TDB_PAD_BYTE 0x42



More information about the samba-cvs mailing list