mirror of
https://github.com/samba-team/samba.git
synced 2025-11-16 20:23:50 +03:00
r3034: - fixed a bug in message dispatch, when the dispatch function called messaging_deregister()
- added a pvfs_lock_close_pending() hook to remove pending locks on file close - fixed the private ptr argument to messaging_deregister() in pvfs_wait - fixed a bug in continuing lock requests after a lock that is blocking a pending lock is removed - removed bogus brl_unlock() call in lock continue - corrected error code for LOCKING_ANDX_CHANGE_LOCKTYPE - expanded the lock cancel test suite to test lock cancel by unlock and by close - added a testsuite for LOCKING_ANDX_CHANGE_LOCKTYPE
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
1977932b54
commit
5ef80f034d
@@ -95,8 +95,9 @@ static char *messaging_path(TALLOC_CTX *mem_ctx, servid_t server_id)
|
||||
*/
|
||||
static void messaging_dispatch(struct messaging_state *msg, struct messaging_rec *rec)
|
||||
{
|
||||
struct dispatch_fn *d;
|
||||
for (d=msg->dispatch;d;d=d->next) {
|
||||
struct dispatch_fn *d, *next;
|
||||
for (d=msg->dispatch;d;d=next) {
|
||||
next = d->next;
|
||||
if (d->msg_type == rec->header.msg_type) {
|
||||
d->fn(msg, d->private, d->msg_type, rec->header.from, &rec->data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user