Add DIE shared option for remote restart and die which are on their
way next.
This commit is contained in:
parent
6f7a78f6aa
commit
74e3e4f1e2
|
@ -694,6 +694,7 @@ shared {
|
||||||
* unresv - allow removing xlines
|
* unresv - allow removing xlines
|
||||||
* all - allow oper/server to do all of above.
|
* all - allow oper/server to do all of above.
|
||||||
* locops - allow locops - only used for servers who cluster
|
* locops - allow locops - only used for servers who cluster
|
||||||
|
* die - allow restarting/dying of servers
|
||||||
* rehash - allow rehashing
|
* rehash - allow rehashing
|
||||||
* dline - allow setting perm/temp dlines
|
* dline - allow setting perm/temp dlines
|
||||||
* tdline - allow setting temp dlines
|
* tdline - allow setting temp dlines
|
||||||
|
|
|
@ -96,6 +96,7 @@ struct remote_conf
|
||||||
#define SHARED_TDLINE 0x0800
|
#define SHARED_TDLINE 0x0800
|
||||||
#define SHARED_PDLINE 0x1000
|
#define SHARED_PDLINE 0x1000
|
||||||
#define SHARED_UNDLINE 0x2000
|
#define SHARED_UNDLINE 0x2000
|
||||||
|
#define SHARED_DIE 0x4000
|
||||||
|
|
||||||
#define SHARED_ALL (SHARED_TKLINE | SHARED_PKLINE | SHARED_UNKLINE |\
|
#define SHARED_ALL (SHARED_TKLINE | SHARED_PKLINE | SHARED_UNKLINE |\
|
||||||
SHARED_PXLINE | SHARED_TXLINE | SHARED_UNXLINE |\
|
SHARED_PXLINE | SHARED_TXLINE | SHARED_UNXLINE |\
|
||||||
|
|
|
@ -959,6 +959,7 @@ static struct shared_flags shared_flagtable[] =
|
||||||
{ SHARED_TDLINE, 'd' },
|
{ SHARED_TDLINE, 'd' },
|
||||||
{ SHARED_PDLINE, 'D' },
|
{ SHARED_PDLINE, 'D' },
|
||||||
{ SHARED_UNDLINE, 'E' },
|
{ SHARED_UNDLINE, 'E' },
|
||||||
|
{ SHARED_DIE, 'I' },
|
||||||
{ 0, '\0'}
|
{ 0, '\0'}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -353,6 +353,7 @@ static struct mode_table cluster_table[] = {
|
||||||
{ "xline", SHARED_PXLINE },
|
{ "xline", SHARED_PXLINE },
|
||||||
{ "txline", SHARED_TXLINE },
|
{ "txline", SHARED_TXLINE },
|
||||||
{ "unxline", SHARED_UNXLINE },
|
{ "unxline", SHARED_UNXLINE },
|
||||||
|
{ "die", SHARED_DIE },
|
||||||
{ "resv", SHARED_PRESV },
|
{ "resv", SHARED_PRESV },
|
||||||
{ "tresv", SHARED_TRESV },
|
{ "tresv", SHARED_TRESV },
|
||||||
{ "unresv", SHARED_UNRESV },
|
{ "unresv", SHARED_UNRESV },
|
||||||
|
|
Loading…
Reference in New Issue