diff options
| author | fukachan <fukachan> | 2003-03-18 10:42:40 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2003-03-18 10:42:40 +0000 |
| commit | 3be0d18d4f3196fad45761c405bbfc2a3b71a82e (patch) | |
| tree | 659aad4273b9d4d502c4667c6a55d487867139f2 /fml/lib/FML/Command/Admin | |
| parent | d381df5a5824e204f61d7279ee6b798aec81c200 (diff) | |
| download | fml8-3be0d18d4f3196fad45761c405bbfc2a3b71a82e.tar.gz fml8-3be0d18d4f3196fad45761c405bbfc2a3b71a82e.tar.bz2 fml8-3be0d18d4f3196fad45761c405bbfc2a3b71a82e.zip | |
remove giant lock and use fine granuality locks now.
Diffstat (limited to 'fml/lib/FML/Command/Admin')
| -rw-r--r-- | fml/lib/FML/Command/Admin/addadmin.pm | 9 | ||||
| -rw-r--r-- | fml/lib/FML/Command/Admin/addmoderator.pm | 9 | ||||
| -rw-r--r-- | fml/lib/FML/Command/Admin/chaddr.pm | 9 | ||||
| -rw-r--r-- | fml/lib/FML/Command/Admin/changepassword.pm | 16 | ||||
| -rw-r--r-- | fml/lib/FML/Command/Admin/deladmin.pm | 9 | ||||
| -rw-r--r-- | fml/lib/FML/Command/Admin/delmoderator.pm | 9 | ||||
| -rw-r--r-- | fml/lib/FML/Command/Admin/digest.pm | 9 | ||||
| -rw-r--r-- | fml/lib/FML/Command/Admin/digestoff.pm | 9 | ||||
| -rw-r--r-- | fml/lib/FML/Command/Admin/digeston.pm | 9 | ||||
| -rw-r--r-- | fml/lib/FML/Command/Admin/error.pm | 9 | ||||
| -rw-r--r-- | fml/lib/FML/Command/Admin/file.pm | 9 | ||||
| -rw-r--r-- | fml/lib/FML/Command/Admin/off.pm | 9 | ||||
| -rw-r--r-- | fml/lib/FML/Command/Admin/on.pm | 9 | ||||
| -rw-r--r-- | fml/lib/FML/Command/Admin/password.pm | 9 | ||||
| -rw-r--r-- | fml/lib/FML/Command/Admin/spool.pm | 11 | ||||
| -rw-r--r-- | fml/lib/FML/Command/Admin/subscribe.pm | 9 | ||||
| -rw-r--r-- | fml/lib/FML/Command/Admin/summary.pm | 9 | ||||
| -rw-r--r-- | fml/lib/FML/Command/Admin/thread.pm | 9 | ||||
| -rw-r--r-- | fml/lib/FML/Command/Admin/unsubscribe.pm | 9 |
19 files changed, 157 insertions, 23 deletions
diff --git a/fml/lib/FML/Command/Admin/addadmin.pm b/fml/lib/FML/Command/Admin/addadmin.pm index f162a76d..90488f7c 100644 --- a/fml/lib/FML/Command/Admin/addadmin.pm +++ b/fml/lib/FML/Command/Admin/addadmin.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: addadmin.pm,v 1.8 2002/12/15 13:46:28 fukachan Exp $ +# $FML: addadmin.pm,v 1.9 2003/01/25 12:48:37 fukachan Exp $ # package FML::Command::Admin::addadmin; @@ -52,6 +52,13 @@ sub new sub need_lock { 1;} +# Descriptions: lock channel +# Arguments: none +# Side Effects: none +# Return Value: STR +sub lock_channel { return 'command_serialize';} + + # Descriptions: addadmin a new user # Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args) # Side Effects: update $member_map $recipient_map diff --git a/fml/lib/FML/Command/Admin/addmoderator.pm b/fml/lib/FML/Command/Admin/addmoderator.pm index b3c318e7..a2f3c33e 100644 --- a/fml/lib/FML/Command/Admin/addmoderator.pm +++ b/fml/lib/FML/Command/Admin/addmoderator.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: addmoderator.pm,v 1.3 2002/09/22 14:56:44 fukachan Exp $ +# $FML: addmoderator.pm,v 1.4 2003/01/25 12:48:37 fukachan Exp $ # package FML::Command::Admin::addmoderator; @@ -52,6 +52,13 @@ sub new sub need_lock { 1;} +# Descriptions: lock channel +# Arguments: none +# Side Effects: none +# Return Value: STR +sub lock_channel { return 'command_serialize';} + + # Descriptions: addmoderator a new user # Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args) # Side Effects: update $member_map $recipient_map diff --git a/fml/lib/FML/Command/Admin/chaddr.pm b/fml/lib/FML/Command/Admin/chaddr.pm index 771989c5..2d5bbe06 100644 --- a/fml/lib/FML/Command/Admin/chaddr.pm +++ b/fml/lib/FML/Command/Admin/chaddr.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: chaddr.pm,v 1.13 2003/02/09 12:31:41 fukachan Exp $ +# $FML: chaddr.pm,v 1.14 2003/03/17 13:22:24 fukachan Exp $ # package FML::Command::Admin::chaddr; @@ -55,6 +55,13 @@ sub new sub need_lock { 1;} +# Descriptions: lock channel +# Arguments: none +# Side Effects: none +# Return Value: STR +sub lock_channel { return 'command_serialize';} + + # Descriptions: change address from old one to new one # Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args) # Side Effects: update $member_map $recipient_map diff --git a/fml/lib/FML/Command/Admin/changepassword.pm b/fml/lib/FML/Command/Admin/changepassword.pm index 21da2a46..a057bb61 100644 --- a/fml/lib/FML/Command/Admin/changepassword.pm +++ b/fml/lib/FML/Command/Admin/changepassword.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: changepassword.pm,v 1.2 2003/02/09 12:31:41 fukachan Exp $ +# $FML: changepassword.pm,v 1.3 2003/03/17 13:23:22 fukachan Exp $ # package FML::Command::Admin::changepassword; @@ -53,6 +53,13 @@ sub new sub need_lock { 1;} +# Descriptions: lock channel +# Arguments: none +# Side Effects: none +# Return Value: STR +sub lock_channel { return 'command_serialize';} + + # Descriptions: change the admin password. # Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args) # Side Effects: update $member_map $recipient_map @@ -117,9 +124,10 @@ sub _change_password my $maps = $config->get_as_array_ref('admin_member_password_maps'); my $pri_map = $config->{ primary_admin_member_password_map }; my $up_args = { - maplist => $maps, - address => $address, - password => $password, + primary_map => $pri_map, + maplist => $maps, + address => $address, + password => $password, }; my $r = ''; diff --git a/fml/lib/FML/Command/Admin/deladmin.pm b/fml/lib/FML/Command/Admin/deladmin.pm index 57dbb6e7..00e36204 100644 --- a/fml/lib/FML/Command/Admin/deladmin.pm +++ b/fml/lib/FML/Command/Admin/deladmin.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: deladmin.pm,v 1.10 2003/01/26 03:15:10 fukachan Exp $ +# $FML: deladmin.pm,v 1.8 2003/01/27 04:36:29 fukachan Exp $ # package FML::Command::Admin::deladmin; @@ -52,6 +52,13 @@ sub new sub need_lock { 1;} +# Descriptions: lock channel +# Arguments: none +# Side Effects: none +# Return Value: STR +sub lock_channel { return 'command_serialize';} + + # Descriptions: remove the specified administrator # Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args) # Side Effects: update $member_map $recipient_map diff --git a/fml/lib/FML/Command/Admin/delmoderator.pm b/fml/lib/FML/Command/Admin/delmoderator.pm index 784ae222..dbd72047 100644 --- a/fml/lib/FML/Command/Admin/delmoderator.pm +++ b/fml/lib/FML/Command/Admin/delmoderator.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: delmoderator.pm,v 1.8 2003/01/27 04:36:29 fukachan Exp $ +# $FML: delmoderator.pm,v 1.7 2003/01/27 04:40:21 fukachan Exp $ # package FML::Command::Admin::delmoderator; @@ -52,6 +52,13 @@ sub new sub need_lock { 1;} +# Descriptions: lock channel +# Arguments: none +# Side Effects: none +# Return Value: STR +sub lock_channel { return 'command_serialize';} + + # Descriptions: remove the specified moderator # Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args) # Side Effects: update $member_map $recipient_map diff --git a/fml/lib/FML/Command/Admin/digest.pm b/fml/lib/FML/Command/Admin/digest.pm index 2cc8e6c0..d5f4d8f1 100644 --- a/fml/lib/FML/Command/Admin/digest.pm +++ b/fml/lib/FML/Command/Admin/digest.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: digest.pm,v 1.7 2003/02/09 12:31:41 fukachan Exp $ +# $FML: digest.pm,v 1.8 2003/02/13 14:06:13 fukachan Exp $ # package FML::Command::Admin::digest; @@ -57,6 +57,13 @@ sub new sub need_lock { 1;} +# Descriptions: lock channel +# Arguments: none +# Side Effects: none +# Return Value: STR +sub lock_channel { return 'command_serialize';} + + # Descriptions: toggle delivery mode between real time and digest. # Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args) # Side Effects: update $recipient_map,$digest_recipient_maps diff --git a/fml/lib/FML/Command/Admin/digestoff.pm b/fml/lib/FML/Command/Admin/digestoff.pm index aca80df4..35e4708a 100644 --- a/fml/lib/FML/Command/Admin/digestoff.pm +++ b/fml/lib/FML/Command/Admin/digestoff.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: digestoff.pm,v 1.2 2002/12/15 13:46:28 fukachan Exp $ +# $FML: digestoff.pm,v 1.3 2003/01/25 12:48:38 fukachan Exp $ # package FML::Command::Admin::digestoff; @@ -52,6 +52,13 @@ sub new sub need_lock { 1;} +# Descriptions: lock channel +# Arguments: none +# Side Effects: none +# Return Value: STR +sub lock_channel { return 'command_serialize';} + + # Descriptions: disable digest mode for the specified user. # Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args) # Side Effects: update $recipient_map,$digest_recipient_maps diff --git a/fml/lib/FML/Command/Admin/digeston.pm b/fml/lib/FML/Command/Admin/digeston.pm index 5a5a228a..fe57a5db 100644 --- a/fml/lib/FML/Command/Admin/digeston.pm +++ b/fml/lib/FML/Command/Admin/digeston.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: digeston.pm,v 1.2 2002/12/15 13:46:29 fukachan Exp $ +# $FML: digeston.pm,v 1.3 2003/01/25 12:48:38 fukachan Exp $ # package FML::Command::Admin::digeston; @@ -52,6 +52,13 @@ sub new sub need_lock { 1;} +# Descriptions: lock channel +# Arguments: none +# Side Effects: none +# Return Value: STR +sub lock_channel { return 'command_serialize';} + + # Descriptions: digest mode off/on for the specified user. # Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args) # Side Effects: update $recipient_map,$digest_recipient_maps diff --git a/fml/lib/FML/Command/Admin/error.pm b/fml/lib/FML/Command/Admin/error.pm index 39184c12..76e0f36b 100644 --- a/fml/lib/FML/Command/Admin/error.pm +++ b/fml/lib/FML/Command/Admin/error.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: error.pm,v 1.1 2003/03/14 12:49:47 fukachan Exp $ +# $FML: error.pm,v 1.2 2003/03/14 14:17:59 fukachan Exp $ # package FML::Command::Admin::error; @@ -52,6 +52,13 @@ sub new sub need_lock { 1;} +# Descriptions: lock channel +# Arguments: none +# Side Effects: none +# Return Value: STR +sub lock_channel { return 'error_analyzer_cache';} + + # Descriptions: change delivery mode from real time to digest. # Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args) # Side Effects: update $recipient_map diff --git a/fml/lib/FML/Command/Admin/file.pm b/fml/lib/FML/Command/Admin/file.pm index 64681e6d..b277cd62 100644 --- a/fml/lib/FML/Command/Admin/file.pm +++ b/fml/lib/FML/Command/Admin/file.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: file.pm,v 1.10 2003/01/25 09:14:05 fukachan Exp $ +# $FML: file.pm,v 1.11 2003/01/25 12:48:38 fukachan Exp $ # package FML::Command::Admin::file; @@ -52,6 +52,13 @@ sub new sub need_lock { 1;} +# Descriptions: lock channel +# Arguments: none +# Side Effects: none +# Return Value: STR +sub lock_channel { return 'command_serialize';} + + # Descriptions: needs "command subcommand parameters" style or not # Arguments: none # Side Effects: none diff --git a/fml/lib/FML/Command/Admin/off.pm b/fml/lib/FML/Command/Admin/off.pm index cac0acb1..1feb77cb 100644 --- a/fml/lib/FML/Command/Admin/off.pm +++ b/fml/lib/FML/Command/Admin/off.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: off.pm,v 1.7 2003/02/13 13:34:26 fukachan Exp $ +# $FML: off.pm,v 1.8 2003/02/13 14:06:13 fukachan Exp $ # package FML::Command::Admin::off; @@ -52,6 +52,13 @@ sub new sub need_lock { 1;} +# Descriptions: lock channel +# Arguments: none +# Side Effects: none +# Return Value: STR +sub lock_channel { return 'command_serialize';} + + # Descriptions: change delivery mode from real time to digest. # Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args) # Side Effects: update $recipient_map diff --git a/fml/lib/FML/Command/Admin/on.pm b/fml/lib/FML/Command/Admin/on.pm index 5efbdf1e..0b302375 100644 --- a/fml/lib/FML/Command/Admin/on.pm +++ b/fml/lib/FML/Command/Admin/on.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: on.pm,v 1.6 2003/01/25 12:48:39 fukachan Exp $ +# $FML: on.pm,v 1.7 2003/02/13 14:06:13 fukachan Exp $ # package FML::Command::Admin::on; @@ -52,6 +52,13 @@ sub new sub need_lock { 1;} +# Descriptions: lock channel +# Arguments: none +# Side Effects: none +# Return Value: STR +sub lock_channel { return 'command_serialize';} + + # Descriptions: change delivery mode from digest to real time. # Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args) # Side Effects: update $recipient_map diff --git a/fml/lib/FML/Command/Admin/password.pm b/fml/lib/FML/Command/Admin/password.pm index 13bcdd63..a17fffea 100644 --- a/fml/lib/FML/Command/Admin/password.pm +++ b/fml/lib/FML/Command/Admin/password.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: password.pm,v 1.7 2003/02/09 12:31:42 fukachan Exp $ +# $FML: password.pm,v 1.8 2003/02/11 09:48:17 fukachan Exp $ # package FML::Command::Admin::password; @@ -52,6 +52,13 @@ sub new sub need_lock { 1;} +# Descriptions: lock channel +# Arguments: none +# Side Effects: none +# Return Value: STR +sub lock_channel { return 'command_serialize';} + + # Descriptions: dummy in the case of command mail. # # [Case 1: command mail] diff --git a/fml/lib/FML/Command/Admin/spool.pm b/fml/lib/FML/Command/Admin/spool.pm index cf451499..f9604f4a 100644 --- a/fml/lib/FML/Command/Admin/spool.pm +++ b/fml/lib/FML/Command/Admin/spool.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: spool.pm,v 1.1 2003/03/15 09:07:04 fukachan Exp $ +# $FML: spool.pm,v 1.2 2003/03/16 10:56:00 fukachan Exp $ # package FML::Command::Admin::spool; @@ -49,7 +49,14 @@ sub new # Arguments: none # Side Effects: none # Return Value: NUM( 1 or 0) -sub need_lock { 0;} +sub need_lock { 1;} + + +# Descriptions: lock channel +# Arguments: none +# Side Effects: none +# Return Value: STR +sub lock_channel { return 'article_spool_modify';} # Descriptions: subcommand dispatch table for "spool" command. diff --git a/fml/lib/FML/Command/Admin/subscribe.pm b/fml/lib/FML/Command/Admin/subscribe.pm index a5c5d55e..a6bee786 100644 --- a/fml/lib/FML/Command/Admin/subscribe.pm +++ b/fml/lib/FML/Command/Admin/subscribe.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: subscribe.pm,v 1.20 2003/01/25 12:48:39 fukachan Exp $ +# $FML: subscribe.pm,v 1.21 2003/02/13 14:06:13 fukachan Exp $ # package FML::Command::Admin::subscribe; @@ -54,6 +54,13 @@ sub new sub need_lock { 1;} +# Descriptions: lock channel +# Arguments: none +# Side Effects: none +# Return Value: STR +sub lock_channel { return 'command_serialize';} + + # Descriptions: subscribe a new user. # Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args) # Side Effects: update $member_map $recipient_map diff --git a/fml/lib/FML/Command/Admin/summary.pm b/fml/lib/FML/Command/Admin/summary.pm index 11d7c078..3d3aa504 100644 --- a/fml/lib/FML/Command/Admin/summary.pm +++ b/fml/lib/FML/Command/Admin/summary.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: summary.pm,v 1.1 2003/03/14 03:44:16 fukachan Exp $ +# $FML: summary.pm,v 1.1 2003/03/14 12:13:04 fukachan Exp $ # package FML::Command::Admin::summary; @@ -52,6 +52,13 @@ sub new sub need_lock { 1;} +# Descriptions: lock channel +# Arguments: none +# Side Effects: none +# Return Value: STR +sub lock_channel { return 'article_spool_modify';} + + # Descriptions: change delivery mode from real time to digest. # Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args) # Side Effects: update $recipient_map diff --git a/fml/lib/FML/Command/Admin/thread.pm b/fml/lib/FML/Command/Admin/thread.pm index 27735e0d..fce05c78 100644 --- a/fml/lib/FML/Command/Admin/thread.pm +++ b/fml/lib/FML/Command/Admin/thread.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: thread.pm,v 1.2 2003/03/14 06:53:22 fukachan Exp $ +# $FML: thread.pm,v 1.1 2003/03/16 04:53:33 fukachan Exp $ # package FML::Command::Admin::thread; @@ -53,6 +53,13 @@ sub new sub need_lock { 1;} +# Descriptions: lock channel +# Arguments: none +# Side Effects: none +# Return Value: STR +sub lock_channel { return 'article_thread';} + + # Descriptions: change delivery mode from real time to digest. # Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args) # Side Effects: update $recipient_map diff --git a/fml/lib/FML/Command/Admin/unsubscribe.pm b/fml/lib/FML/Command/Admin/unsubscribe.pm index 44bdd545..f22ec45d 100644 --- a/fml/lib/FML/Command/Admin/unsubscribe.pm +++ b/fml/lib/FML/Command/Admin/unsubscribe.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: unsubscribe.pm,v 1.20 2003/01/29 13:32:31 fukachan Exp $ +# $FML: unsubscribe.pm,v 1.21 2003/02/13 14:06:13 fukachan Exp $ # package FML::Command::Admin::unsubscribe; @@ -54,6 +54,13 @@ sub new sub need_lock { 1;} +# Descriptions: lock channel +# Arguments: none +# Side Effects: none +# Return Value: STR +sub lock_channel { return 'command_serialize';} + + # Descriptions: remove the specified user. # Arguments: OBJ($self) OBJ($curproc) HASH_REF($command_args) # Side Effects: update $member_map $recipient_map |
