diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:19:13 +0930 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2011-09-14 07:19:13 +0930 |
commit | 1664702d2f0755a3caf7ba8dd433e34bb8d340b0 (patch) | |
tree | 2d9ecae020d34ac645b55c2df516045359ba7df2 /lib/tdb2/private.h | |
parent | 617c1fcfa476d65320dc2c14b21016b6b438c090 (diff) | |
download | samba-1664702d2f0755a3caf7ba8dd433e34bb8d340b0.tar.gz samba-1664702d2f0755a3caf7ba8dd433e34bb8d340b0.tar.bz2 samba-1664702d2f0755a3caf7ba8dd433e34bb8d340b0.zip |
tdb2: keep link of every non-internal tdb.
Instead of a per-file linked list, use a per-tdb list. This is needed
for tdb_foreach().
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit 2414f261918b4fb8a549dd385dba32118e37bf85)
Diffstat (limited to 'lib/tdb2/private.h')
-rw-r--r-- | lib/tdb2/private.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/tdb2/private.h b/lib/tdb2/private.h index d7db41bf74..7c051121d7 100644 --- a/lib/tdb2/private.h +++ b/lib/tdb2/private.h @@ -310,9 +310,6 @@ struct tdb_access_hdr { }; struct tdb_file { - /* Single list of all TDBs, to detect multiple opens. */ - struct tdb_file *next; - /* How many are sharing us? */ unsigned int refcnt; @@ -337,6 +334,9 @@ struct tdb_file { }; struct tdb_context { + /* Single list of all TDBs, to detect multiple opens. */ + struct tdb_context *next; + /* Filename of the database. */ const char *name; |