summaryrefslogtreecommitdiffstats
path: root/ctdb/lib/replace/libreplace.m4
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2013-10-28 16:00:54 +1100
committerAmitay Isaacs <amitay@gmail.com>2013-10-29 17:14:55 +1100
commitedda442b363f519b9c7ee4b9fb6d2e254536078b (patch)
treee480d793650defc16929a7a06e06d68fa644c21a /ctdb/lib/replace/libreplace.m4
parentd9e2411ace8fa51937019b47c9c8634c4d4716be (diff)
downloadsamba-edda442b363f519b9c7ee4b9fb6d2e254536078b.tar.gz
samba-edda442b363f519b9c7ee4b9fb6d2e254536078b.tar.xz
samba-edda442b363f519b9c7ee4b9fb6d2e254536078b.zip
eventscripts: Rewrite the smb.conf cache file handling
The background update is never guaranteed to complete before the cache is used, so don't bother trying it at the beginning. Instead, put a timeout on a foreground update. If the foreground update fails: * If there's no available cache file then die. * If there is a previous cache file then use it and log a warning. * Do a background update at the end of the monitor event. Also remove commas in the "smb ports" list before use, since (newer?) testparm seem to insert commas into the default value. Update the associated test to add a comma. Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 8c6f511254ecb0381a609b37e3a0ee6e5ec5d562)
Diffstat (limited to 'ctdb/lib/replace/libreplace.m4')
0 files changed, 0 insertions, 0 deletions