tdb2: fix tdb_lock offset.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 01:12:12 +0000 (10:42 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 01:12:12 +0000 (10:42 +0930)
It can be 64 bits, for huge databases.

ccan/tdb2/private.h

index 6a742496971303a256b41779956669195ae7f3ca..3397e04c4c4391d43bbab3e401e5a3bd0de57acf 100644 (file)
@@ -283,7 +283,7 @@ enum tdb_lock_flags {
 
 struct tdb_lock {
        struct tdb_context *owner;
-       uint32_t off;
+       off_t off;
        uint32_t count;
        uint32_t ltype;
 };