Igor Gariev (gariev) wrote in changelog,
Igor Gariev
gariev
changelog

[livejournal] r19087: LJSUP-8850: Fix bug when memcache return...

Committer: gariev
LJSUP-8850: Fix bug when memcache returns non-expected data

U   trunk/cgi-bin/ljlib.pl
Modified: trunk/cgi-bin/ljlib.pl
===================================================================
--- trunk/cgi-bin/ljlib.pl	2011-05-19 10:21:15 UTC (rev 19086)
+++ trunk/cgi-bin/ljlib.pl	2011-05-19 10:29:16 UTC (rev 19087)
@@ -3590,5 +3590,9 @@
 }
 
 LJ::run_hooks("startup");
+## Hook "startup" is run before apaches are forked.
+## If a connection to memcached is created in the hook code, they must be disconnected,
+## otherwise, several apache processes will share the same socket.
+LJ::MemCache->disconnect_all;
 
 1;

Tags: gariev, livejournal, pl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments