projects
/
l2tpns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
455e310
)
slaves get new tbf indexes on becoming master anyway
author
bodea
<bodea>
Sat, 30 Oct 2004 07:35:00 +0000
(07:35 +0000)
committer
bodea
<bodea>
Sat, 30 Oct 2004 07:35:00 +0000
(07:35 +0000)
cluster.c
patch
|
blob
|
history
diff --git
a/cluster.c
b/cluster.c
index
2c8da60
..
7a47ef3
100644
(file)
--- a/
cluster.c
+++ b/
cluster.c
@@
-1,6
+1,6
@@
// L2TPNS Clustering Stuff
// L2TPNS Clustering Stuff
-char const *cvs_id_cluster = "$Id: cluster.c,v 1.1
3 2004/10/29 04:25:4
0 bodea Exp $";
+char const *cvs_id_cluster = "$Id: cluster.c,v 1.1
4 2004/10/30 07:35:0
0 bodea Exp $";
#include <stdio.h>
#include <sys/file.h>
#include <stdio.h>
#include <sys/file.h>
@@
-591,15
+591,8
@@
void cluster_check_master(void)
session[i].tbf_in = session[i].tbf_out = 0; // Remove stale pointers from old master.
throttle_session(i, session[i].throttle);
session[i].tbf_in = session[i].tbf_out = 0; // Remove stale pointers from old master.
throttle_session(i, session[i].throttle);
-// I'm unsure about this. --mo
-// It's potentially a good thing, but it could send a
-// LOT of packets.
-// if (session[i].throttle)
-// cluster_send_session(s); // Tell the slaves about the new tbf indexes.
-
if (session[i].tunnel != T_FREE && i > config->cluster_highest_sessionid)
config->cluster_highest_sessionid = i;
if (session[i].tunnel != T_FREE && i > config->cluster_highest_sessionid)
config->cluster_highest_sessionid = i;
-
}
session[last_free].next = 0; // End of chain.
}
session[last_free].next = 0; // End of chain.