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

[livejournal] r17813: LJSUP-7462 (refactor userprops): bugfix

Committer: ailyin
LJSUP-7462 (refactor userprops): bugfix
U   trunk/cgi-bin/LJ/User/PropStorage.pm
Modified: trunk/cgi-bin/LJ/User/PropStorage.pm
===================================================================
--- trunk/cgi-bin/LJ/User/PropStorage.pm	2010-11-29 08:19:49 UTC (rev 17812)
+++ trunk/cgi-bin/LJ/User/PropStorage.pm	2010-11-29 09:23:41 UTC (rev 17813)
@@ -80,7 +80,7 @@
         my $propid   = $propinfo->{'id'};
         my $memkey   = $class->memcache_key($u, $k);
 
-        $propid_map{$propid} = $k;
+        $propid_map{$k} = $propid;
         push @memkeys, [ $userid, $memkey ];
     }
 
@@ -92,7 +92,7 @@
 
         next unless exists $from_memcache->{$memkey};
 
-        $ret{ $propid_map{$k} } = $from_memcache->{$memkey};
+        $ret{ $k } = $from_memcache->{$memkey};
     }
 
     return \%ret;

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