diff options
author | Jeremy Allison <jra@samba.org> | 2001-05-14 06:15:46 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-05-14 06:15:46 +0000 |
commit | 0852465053d0c1a23b6cfe6097267291b0595ef8 (patch) | |
tree | ca095be078d1820dc609843a6e2d287cef4f6875 /source/tdb | |
parent | 858290d63b8e4300f2a1a334675566beb6881993 (diff) | |
download | samba-0852465053d0c1a23b6cfe6097267291b0595ef8.tar.gz samba-0852465053d0c1a23b6cfe6097267291b0595ef8.tar.xz samba-0852465053d0c1a23b6cfe6097267291b0595ef8.zip |
Implemented max connections in a similar way to 2.0.x (scan of connection db).
This needs testing !
Tidied up tabs in tdb.c.
Jeremy.
Diffstat (limited to 'source/tdb')
-rw-r--r-- | source/tdb/tdb.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/tdb/tdb.c b/source/tdb/tdb.c index 25f458ac228..5fcea52d5e9 100644 --- a/source/tdb/tdb.c +++ b/source/tdb/tdb.c @@ -872,10 +872,10 @@ int tdb_traverse(TDB_CONTEXT *tdb, tdb_traverse_func fn, void *state) struct tdb_traverse_lock tl = { NULL, 0, 0 }; int ret, count = 0; - /* This was in the initializaton, above, but the IRIX compiler - * did not like it. crh - */ - tl.next = tdb->travlocks.next; + /* This was in the initializaton, above, but the IRIX compiler + * did not like it. crh + */ + tl.next = tdb->travlocks.next; /* fcntl locks don't stack: beware traverse inside traverse */ tdb->travlocks.next = &tl; @@ -908,8 +908,10 @@ int tdb_traverse(TDB_CONTEXT *tdb, tdb_traverse_func fn, void *state) free(key.dptr); } tdb->travlocks.next = tl.next; - if (ret < 0) return -1; - else return count; + if (ret < 0) + return -1; + else + return count; } /* find the first entry in the database and return its key */ |