tdb2: fix tdb_lock offset.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 21:38:13 +0000 (07:08 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 13 Sep 2011 21:38:13 +0000 (07:08 +0930)
It can be 64 bits, for huge databases.

(Imported from CCAN commit 736c033322079baf754261d82b6a83de53b2bb4e)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
lib/tdb2/private.h

index 38d5b50218064136236990c6c693777aca46ddaa..a18e02b720305eaf9a70f2f85e0105c2a91f1c7e 100644 (file)
@@ -295,7 +295,7 @@ enum tdb_lock_flags {
 
 struct tdb_lock {
        struct tdb_context *owner;
-       uint32_t off;
+       off_t off;
        uint32_t count;
        uint32_t ltype;
 };