summaryrefslogtreecommitdiffstats
path: root/source/lib/messages.c
Commit message (Collapse)AuthorAgeFilesLines
* r24032: It helps testing tremendously if the cluster messaging actually sendsVolker Lendecke2007-07-241-0/+7
| | | | and receives messages to other nodes... :-)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-07-101-2/+1
|
* r23780: Find and fix more GPL2 -> GPL3.Jeremy Allison2007-07-091-1/+1
| | | | Jeremy.
* r23410: Merge the core of the cluster code.Volker Lendecke2007-06-101-0/+41
| | | | | | | | | | | | | | | | I'm 100% certain I've forgotten to merge something, but the main code should be in. It's mainly in dbwrap_ctdb.c, ctdbd_conn.c and messages_ctdbd.c. There should be no changes to the non-cluster case, it does survive make test on my laptop. It survives some very basic tests with ctdbd enables, I did not do the full test suite for clusters yet. Phew... Volker
* r23343: Fix error returnVolker Lendecke2007-06-041-1/+3
|
* r23204: Add MSG_SMB_BRL_VALIDATE. Tridge, this is a bit different from your bzrVolker Lendecke2007-05-291-1/+1
| | | | | | | | | | branch, please check if it fulfils your needs. Two changes: The validation is not done inside the brlock.c traverse_fn, it's done as a separate routine. Secondly, this patch does not call the checker routines in smbcontrol directly but depends on a running smbd.
* r23171: Convert connections.tdb to dbwrapVolker Lendecke2007-05-281-14/+8
|
* r23117: Factor out local messaging.Volker Lendecke2007-05-241-399/+26
| | | | | | This removes message_block / message_unblock. I've talked to Jeremy and Günther, giving them my reasons why I believe they have no effect. Neither could come up with a counter-argument, so they go :-)
* r23112: Trim down the message.c API slightly: The messages_pending_for_pid ↵Volker Lendecke2007-05-241-56/+41
| | | | | | | | | | | is now replaced by MSG_FLAG_LOWPRIORITY or'ed into the msg_type. To enable this, changed the msg_type definitions to hexadecimal. This way we could theoretically add the MSG_FLAG_NODUPLICATES again, but I would rather not do this, because that one is racy and can't be guaranteed at all.
* r23077: Minor cleanupVolker Lendecke2007-05-221-4/+0
|
* r23055: Rewrite messages.c to use auto-generated marshalling in the tdb. I'mVolker Lendecke2007-05-211-330/+267
| | | | | | | | | | | doing this because for the clustering the marshalling is needed in more than one place, so I wanted a decent routine to marshall a message_rec struct which was not there before. Tridge, this seems about the same speed as it used to be before, the librpc/ndr overhead in my tests was under the noise. Volker
* r23025: Some logic simplificationsVolker Lendecke2007-05-201-29/+27
|
* r23024: Ok, neither the duplicates_allowed nor the timeout argument toVolker Lendecke2007-05-201-112/+12
| | | | | | | | | | | | | | message_send_pid is used anymore. Two users of duplicates_allowed: winbind and the printer notify system. I don't thing this really changes semantics: duplicates_allowed is hell racy anyway, we can't guarantee that we don't send the same message in sequence twice, and I think the only thing we can harm with the print notify is performance. For winbind I talked to Günther, and he did not seem too worried. Volker
* r23023: Get rid of the only caller of message_send_pid_with_timeout(). This ↵Volker Lendecke2007-05-201-10/+0
| | | | | | | | | | | | | | | | | | | | | replaces the timeouts on the individual message send calls with an overall timeout on all the calls. The timeout in message_send_pid_with_timeout() did not make much sense IMO anyway, because the tdb_fetch() for the messages_pending_for_pid was blocking in a readlock anyway, we "just" did the timeout for the write lock. This new code goes through the full wait for the write lock once and then breaks out of sending the notifies instead of running into the timeout per target. Jerry, please check this! Thanks, Volker
* r23022: ReformattingVolker Lendecke2007-05-201-37/+47
|
* r23015: Make message_(de)register static to messages.cVolker Lendecke2007-05-191-7/+13
|
* r22945: merge 22009 from SAMBA_3_0 + some warning fixes for new code:Stefan Metzmacher2007-05-161-6/+6
| | | | | | | | change TDB_DATA from char * to unsigned char * and fix all compiler warnings in the users metze
* r22934: Change smbcontrol to use messaging_register instead of message_registerVolker Lendecke2007-05-161-0/+7
|
* r22911: Pass a messaging_context to message_send_allVolker Lendecke2007-05-151-1/+2
|
* r22910: Make message_send_pid static to messages.cVolker Lendecke2007-05-151-16/+9
|
* r22908: All callers of message_init now also call messaging_init. Unify those.Volker Lendecke2007-05-151-1/+8
|
* r22868: Replace some message_send_pid calls with messaging_send_pid calls. MoreVolker Lendecke2007-05-141-1/+19
| | | | tomorrow.
* r22846: Chunk one to replace message_send_pid with messaging_send: Deep insideVolker Lendecke2007-05-141-1/+1
| | | | | | locking/locking.c we have to send retry messages to timed lock holders. The majority of this patch passes a "struct messaging_context" down there. No functional change, survives make test.
* r22761: This introduces lib/conn_tdb.c with two main functions: ↵Volker Lendecke2007-05-081-2/+2
| | | | | | | | | connections_traverse and connections_forall. This centralizes all the routines that did individual tdb_open("connections.tdb") and direct tdb_traverse. Volker
* r22736: Start to merge the low-hanging fruit from the now 7000-line cluster ↵Volker Lendecke2007-05-071-18/+16
| | | | | | | | | patch. This changes "struct process_id" to "struct server_id", keeping both is just too much hassle. No functional change (I hope ;-)) Volker
* r22276: Fix name -> servicename in messages.cJeremy Allison2007-04-161-1/+1
| | | | Jeremy.
* r22096: become_root_uid_only() is unneeded - it's only used inJeremy Allison2007-04-051-2/+7
| | | | | | messages.c. Refactor to use become_root() instead and make it local to messages.c Jeremy.
* r21723: Make use of the per-hashchain "freelists"Volker Lendecke2007-03-061-0/+3
|
* r21322: No feedback means consent :-)Volker Lendecke2007-02-131-41/+204
| | | | | | | | | | | It does not matter if I screw up 3.0.25 or 3.0.26 with this, so do it rather sooner than later. Add the notify support that already exists in 3_0 to 3_0_25. If you want to see this patch dissected into digestable parts, look at 3_0, revisions at about 20800 and following. Volker
* r20174: If we're only going to call one handler per messageJeremy Allison2006-12-141-4/+4
| | | | | then terminate the traversal once we've done that. Jeremy.
* r20165: Change messaging subsystem to only allow one messageJeremy Allison2006-12-141-3/+11
| | | | | | | per type - this is all we use right now and makes re-entrancy problems with deleting handlers with a message dispatch loop go away. Jeremy.
* r20160: Fix long-standing (ie. from initial code I think) bugJeremy Allison2006-12-131-2/+5
| | | | | | | | in tdb message processing. If we're inside a dispatch function and we delete our own handler we'd walk onto the next pointer from a deleted memory block. Fixes crash bug in winbindd (and goodness knows where else). Jeremy.
* r19784: smbd compiles (still a few warning which are actual bugs)Gerald Carter2006-11-191-5/+22
|
* r16418: Pull in more Klocwork fixes (up to r16415)Gerald Carter2006-06-201-2/+8
|
* r15003: patch based on code from Arkady Glabek <aglabek@centeris.com> to ↵Gerald Carter2006-04-081-0/+18
| | | | ensure that global memory is freed when unloading pam_winbind.so (needs more testing on non-linux platforms)
* r13316: Let the carnage begin....Gerald Carter2006-02-031-0/+15
| | | | Sync with trunk as off r13315
* r10656: BIG merge from trunk. Features not copied overGerald Carter2005-09-301-24/+33
| | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck)
* r9619: Fix messages_pending_for_pid actually do what it's meant to do. This ↵Volker Lendecke2005-08-251-1/+1
| | | | | | | | | | | | | | | | | might be a big relief on messages.tdb contention as ignoring processes with >1000 messages in printing/notify.c should work correctly now. Jeremy, Jerry told me to ask you about printer scalability torture tests, this might be a reason why you implemented the message_send_pid_with_timeout using the signal (shudder) in the first place. :-) While looking at that... Wouldn't it be better to not use the signal but have an overall timeout for print_notify_send_messages using GetTimeOfDay & friends and not use the alarm signal deep inside tdb.c? Volker
* r7440: * merge registry server changes from trunk (so far) for more Gerald Carter2005-06-091-1/+1
| | | | | | printmig.exe work * merge the sys_select_signal(char c) change from trunk in order to keeo the winbind code in sync
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2004-12-071-2/+2
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* r1885: tighten the cache consistency with the ntprinters.tdb entry an the in ↵Gerald Carter2004-08-181-2/+4
| | | | memory cache associated with open printer handles; also make sure that register_messages_flags() doesn't overwrite the originally registers flags
* r2: import HEAD into svn+ssh://svn.samba.org/home/svn/samba/trunkCVS Import User2004-04-041-0/+596
metze