dougm       01/03/14 21:42:15

  Modified:    src/modules/perl modperl_callback.c
  Log:
  no need to dup a non-parsed handler in a non-threaded mpm
  
  Revision  Changes    Path
  1.28      +8 -5      modperl-2.0/src/modules/perl/modperl_callback.c
  
  Index: modperl_callback.c
  ===================================================================
  RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_callback.c,v
  retrieving revision 1.27
  retrieving revision 1.28
  diff -u -r1.27 -r1.28
  --- modperl_callback.c        2001/03/15 05:39:06     1.27
  +++ modperl_callback.c        2001/03/15 05:42:15     1.28
  @@ -71,11 +71,14 @@
   
   #ifdef USE_ITHREADS
       if (p && !MpHandlerPARSED(handler)) {
  -        /*
  -         * cannot update the handler structure at request time without
  -         * locking, so just copy it
  -         */
  -        handler = modperl_handler_dup(p, handler);
  +        MP_dSCFG(s);
  +        if (scfg->threaded_mpm) {
  +            /*
  +             * cannot update the handler structure at request time without
  +             * locking, so just copy it
  +             */
  +            handler = modperl_handler_dup(p, handler);
  +        }
       }
   #endif
   
  
  
  

Reply via email to