Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r21462: LJSUP-11530 (prepare LJ code to run on d...

Committer: ailyin
LJSUP-11530 (prepare LJ code to run on debian squeeze)
U   trunk/cgi-bin/ljdefaults.pl
U   trunk/cgi-bin/ljlib.pl
Modified: trunk/cgi-bin/ljdefaults.pl
===================================================================
--- trunk/cgi-bin/ljdefaults.pl	2012-03-19 19:14:32 UTC (rev 21461)
+++ trunk/cgi-bin/ljdefaults.pl	2012-03-20 05:55:39 UTC (rev 21462)
@@ -170,23 +170,6 @@
     # Maximum number of comments to display on Recent Comments page
     $LJ::TOOLS_RECENT_COMMENTS_MAX ||= 50;
 
-    # setup the mogilefs defaults so we can create the necessary domains
-    # and such. it is not recommended that you change the name of the
-    # classes. you can feel free to add your own or alter the mindevcount
-    # from within ljconfig.pl, but the LiveJournal code uses these class
-    # names elsewhere and depends on them existing if you're using MogileFS
-    # for storage.
-    #
-    # also note that this won't actually do anything unless you have
-    # defined a MOGILEFS_CONFIG hash in ljconfig.pl and you explicitly set
-    # at least the hosts key to be an arrayref of ip:port combinations
-    # indicating where to reach your local MogileFS server.
-    %LJ::MOGILEFS_CONFIG = () unless defined %LJ::MOGILEFS_CONFIG;
-    $LJ::MOGILEFS_CONFIG{domain}                 ||= 'livejournal';
-    $LJ::MOGILEFS_CONFIG{classes}                ||= {};
-    $LJ::MOGILEFS_CONFIG{classes}->{userpics}    ||= 3;
-    $LJ::MOGILEFS_CONFIG{classes}->{captcha}     ||= 2;
-
     # Default to allow all reproxying.
     %LJ::REPROXY_DISABLE = () unless %LJ::REPROXY_DISABLE;
 

Modified: trunk/cgi-bin/ljlib.pl
===================================================================
--- trunk/cgi-bin/ljlib.pl	2012-03-19 19:14:32 UTC (rev 21461)
+++ trunk/cgi-bin/ljlib.pl	2012-03-20 05:55:39 UTC (rev 21462)
@@ -3377,7 +3377,7 @@
         or return undef;
 
     # append to recentactions table
-    $dbcm->do("INSERT DELAYED INTO recentactions VALUES (?)", undef, $action);
+    $dbcm->do("INSERT INTO recentactions VALUES (?)", undef, $action);
     return undef if $dbcm->err;
 
     return 1;

Tags: ailyin, andy, 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