From a26b54cbaae2d6c844057a6b01e1147b2e48deb9 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Sun, 7 Sep 1997 17:26:26 +0000 Subject: samba servers forcing local elections if they are not a local master. added check for "preferred master" to ensure not forcing an election. (This used to be commit f8afd4c4c131a75ce685016e84205082aadbdb78) --- source3/nameelect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/nameelect.c b/source3/nameelect.c index 06f3e870af..4666b22588 100644 --- a/source3/nameelect.c +++ b/source3/nameelect.c @@ -76,7 +76,7 @@ void check_master_browser(time_t t) { if (strequal(work->work_group, myworkgroup) && !AM_MASTER(work)) { - if (lp_local_master()) + if (lp_local_master() && lp_preferred_master()) { /* potential master browser - not a master browser. force becoming a master browser, hence the log message. -- cgit