diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-16 13:47:00 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2004-10-16 13:47:00 +0000 |
commit | 82f33c688ac9a33b2776b0e300ae4ef3d15851e8 (patch) | |
tree | 4f1946b46076a4b49430d696b49f97071554eb0e /source/lib/socket/socket_unix.c | |
parent | fbebb42083251602deb558a6de108d3871a6496a (diff) | |
download | samba-82f33c688ac9a33b2776b0e300ae4ef3d15851e8.tar.gz samba-82f33c688ac9a33b2776b0e300ae4ef3d15851e8.tar.xz samba-82f33c688ac9a33b2776b0e300ae4ef3d15851e8.zip |
r3005: added talloc wrappers around tdb_open() and ldb_connect(), so that the
caller doesn't have to worry about the constraint of only opening a
database a single time in a process. These wrappers will ensure that
only a single open is done, and will auto-close when the last instance
is gone.
When you are finished with a database pointer, use talloc_free() to
close it.
note that this code does not take account of the threads process
model, and does not yet take account of symlinks or hard links to tdb
files.
Diffstat (limited to 'source/lib/socket/socket_unix.c')
0 files changed, 0 insertions, 0 deletions