diff options
| author | fukachan <fukachan> | 2005-05-31 13:04:38 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2005-05-31 13:04:38 +0000 |
| commit | 09e67018a8870386b756bc5cc38d3c085b2c4f0d (patch) | |
| tree | 470595b765f4d5a03ce33d5ec13c2028f01bfe07 /fml/lib/FML/Process/Kernel.pm | |
| parent | 769e0de9be93f9dc132c7badf71963d862f64bde (diff) | |
| download | fml8-09e67018a8870386b756bc5cc38d3c085b2c4f0d.tar.gz fml8-09e67018a8870386b756bc5cc38d3c085b2c4f0d.tar.bz2 fml8-09e67018a8870386b756bc5cc38d3c085b2c4f0d.zip | |
"my $path = $obj->cache_file_path();" is wrong. old implementation
saves the FML::Cache::Ring file path for later use. But it is
ambiguous. When many processes (> modules) runs simultaneously, $path
may be overwritten by the next content. Instead, use $queue_file
since $queue_file (queue/incoming/ID) is unique.
Diffstat (limited to 'fml/lib/FML/Process/Kernel.pm')
| -rw-r--r-- | fml/lib/FML/Process/Kernel.pm | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/fml/lib/FML/Process/Kernel.pm b/fml/lib/FML/Process/Kernel.pm index 6a3848f0..2849d528 100644 --- a/fml/lib/FML/Process/Kernel.pm +++ b/fml/lib/FML/Process/Kernel.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: Kernel.pm,v 1.253 2005/01/23 00:54:38 fukachan Exp $ +# $FML: Kernel.pm,v 1.254 2005/05/27 04:37:36 fukachan Exp $ # package FML::Process::Kernel; @@ -1068,7 +1068,7 @@ sub fix_perl_include_path } -=head2 parse_incoming_message($args) +=head2 parse_incoming_message() C<preapre()> method calls this to parse the message to a set of header and body. @@ -1164,9 +1164,13 @@ sub parse_incoming_message } } - # save the cache file path. - my $path = $obj->cache_file_path(); - $curproc->set_incoming_message_cache_file_path($path); + # XXX "my $path = $obj->cache_file_path();" is wrong. + # old implementation saves the FML::Cache::Ring file path + # for later use. But it is ambiguous. When many processes + # (> modules) runs simultaneously, $path may be + # overwritten by the next content. Instead, use $queue_file + # since $queue_file (queue/incoming/ID) is unique. + $curproc->set_incoming_message_cache_file_path($queue_file); } } @@ -1267,7 +1271,7 @@ sub _inject_charset_hints =head1 CREDENTIAL -=head2 premit_post($args) +=head2 premit_post() permit posting. The restriction rules follows the order of C<article_post_restrictions>. |
