diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-02-12 23:16:02 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:17:54 -0500 |
commit | 949eb20a1ab73e5da068183e8b05b114206dd555 (patch) | |
tree | e2d2b173fad1d4bf24519fe55f4f6652e35331df /source3/tdb/common/tdb_private.h | |
parent | b5114650cf63a0e6338da7ac9b5d2fe82ebb057b (diff) | |
download | samba-949eb20a1ab73e5da068183e8b05b114206dd555.tar.gz samba-949eb20a1ab73e5da068183e8b05b114206dd555.tar.bz2 samba-949eb20a1ab73e5da068183e8b05b114206dd555.zip |
r21303: As discussed on samba-technical: Change the static array for the in-memory
mirrors of the hash chain locks to a dynamically allocated one.
Jeremy, I count on you to revert it if the build farm freaks out, it's after
midnight here :-)
Volker
(This used to be commit c50f099be1fcae2d533e1c3816cb25c315ba167a)
Diffstat (limited to 'source3/tdb/common/tdb_private.h')
-rw-r--r-- | source3/tdb/common/tdb_private.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/tdb/common/tdb_private.h b/source3/tdb/common/tdb_private.h index 1b45481f97..56f609fb82 100644 --- a/source3/tdb/common/tdb_private.h +++ b/source3/tdb/common/tdb_private.h @@ -123,6 +123,7 @@ struct tdb_header { }; struct tdb_lock_type { + int list; u32 count; u32 ltype; }; @@ -152,7 +153,8 @@ struct tdb_context { int read_only; /* opened read-only */ int traverse_read; /* read-only traversal */ struct tdb_lock_type global_lock; - struct tdb_lock_type *locked; /* array of chain locks */ + int num_lockrecs; + struct tdb_lock_type *lockrecs; /* only real locks, all with count>0 */ enum TDB_ERROR ecode; /* error code for last tdb error */ struct tdb_header header; /* a cached copy of the header */ u32 flags; /* the flags passed to tdb_open */ |