smbd: Sort notify events by timestamp
authorVolker Lendecke <vl@samba.org>
Fri, 4 Apr 2014 19:12:06 +0000 (21:12 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 23 Apr 2014 20:33:08 +0000 (22:33 +0200)
commitc6a27340107854bbcd48ef0a83ee7d3be807445f
tree6a99f783cd24c90fa68b670b7f6a459440fe245d
parent3218c73da516b653916e161afc8fbeba0691858c
smbd: Sort notify events by timestamp

This will fix the raw.notify test with the new messaging system. With the new
messaging system messages come in via yet another fd that has to line up in
poll next to the incoming client TCP socket. With the signal-based messaging
messages were always handled before client requests. The new scheme means that
notify messages might be deferred a bit (something which can happen in a
cluster already now), which then means that notify_marshall_changes() will
coalesce entries, which in turn makes raw.notify unhappy.

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/notify.c