git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e6eeba
)
Fix bug #6224 - nmbd waits 5 minutes at startup before checking if it needs to run...
author
Jeremy Allison
<jra@samba.org>
Thu, 26 Mar 2009 19:13:28 +0000
(12:13 -0700)
committer
Karolin Seeger
<kseeger@samba.org>
Fri, 27 Mar 2009 12:06:57 +0000
(13:06 +0100)
Fix logic bug that causes nmbd to wait 5 minutes before
looking for a master browser. This one is *old* :-). Thanks
for Simo for bugging me on this.
Jeremy.
(cherry picked from commit
857c2e4407a0f4fcee721372ffed5366bc3051f9
)
source/nmbd/nmbd_elections.c
patch
|
blob
|
history
diff --git
a/source/nmbd/nmbd_elections.c
b/source/nmbd/nmbd_elections.c
index b50d215b91d57c37b5287ceb9f076782c932561a..1ed64f4059f7ce18c42b170e3470a0571c941e69 100644
(file)
--- a/
source/nmbd/nmbd_elections.c
+++ b/
source/nmbd/nmbd_elections.c
@@
-130,9
+130,6
@@
void check_master_browser_exists(time_t t)
struct subnet_record *subrec;
const char *workgroup_name = lp_workgroup();
- if (!lastrun)
- lastrun = t;
-
if (t < (lastrun + (CHECK_TIME_MST_BROWSE * 60)))
return;