svn commit: samba r3005 - in branches/SAMBA_4_0/source: include intl lib lib/tdb libcli passdb rpc_server/netlogon rpc_server/samr smbd

tridge at samba.org tridge at samba.org
Sat Oct 16 23:19:04 GMT 2004


Volker,

 > Wow! Two newly introduced static variables ;-))

yes, and they will replace having a static variable in each place that
we open a tdb or ldb.

The correct solution later on will be to create a helper function
inside the process model code that allocates named global memory with
the right scope according to the process model selected. Then we would
hang variables like these off that memory. 

I introduced these wrappers now as they allow us to start using a
correctly formed API in each of the places we will use a tdb or ldb,
then we can fix the implementation in one place at a later stage once
we have the process model support for globals.

It is unfortunate that posix forces some globals of this type. The
locking/close semantics forces databases to use globals of this type,
and the security context semantics will force more globals for the
security context state. We just have to live with it.

Cheers, Tridge


More information about the samba-technical mailing list