svn commit: samba r10512 - in branches/tmp/vl-cluster/source: include lib nsswitch printing smbd

vlendec at samba.org vlendec at samba.org
Mon Sep 26 16:27:45 GMT 2005


Author: vlendec
Date: 2005-09-26 16:27:43 +0000 (Mon, 26 Sep 2005)
New Revision: 10512

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10512

Log:
Work in progress -- this adds unix datagram socket based messaging. This is a
preparation for better cluster messaging, using a shared messaging.tdb
somewhat sucks. It's still around, but only for large messages with no
duplicates allowed. All brlock, share mode and oplock messages can be sent via
the socket.

The USR1 signal is gone, notification works via one of these messages.

The idea is to have a central dispatcher daemon that holds tcp connections to
all other cluster nodes and can then locally send the message via unix domain
sockets.

This central dispatcher will also be a queuing daemon for message sends that
would block. The idea is to sendto() non-blocking directly. If that fails,
send to the dispatcher in blocking mode. As this one does queue everything
correctly guarded by select(), blocking there should not be as bad.

An option is to then implement the duplicates_allowed there, so that only very
large messages need to go through the tdb file.

TODO: write the dispatcher, correctly clean up sockets.

Volker

Modified:
   branches/tmp/vl-cluster/source/include/messages.h
   branches/tmp/vl-cluster/source/lib/messages.c
   branches/tmp/vl-cluster/source/lib/util_sock.c
   branches/tmp/vl-cluster/source/nsswitch/winbindd.c
   branches/tmp/vl-cluster/source/printing/notify.c
   branches/tmp/vl-cluster/source/smbd/process.c
   branches/tmp/vl-cluster/source/smbd/server.c


Changeset:
Sorry, the patch is too large (845 lines) to include; please use WebSVN to see it!
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=10512


More information about the samba-cvs mailing list