allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [16/50] git commit: [#4691] Flush after computing LCD for each commit
Date Wed, 06 Feb 2013 15:42:52 GMT
[#4691] Flush after computing LCD for each commit

Signed-off-by: Cory Johns <johnsca@geek.net>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/2f32ed1c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/2f32ed1c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/2f32ed1c

Branch: refs/heads/cj/4691
Commit: 2f32ed1cdb3c26f6188eab42e4d23b4fe959b896
Parents: 73fb34e
Author: Cory Johns <johnsca@geek.net>
Authored: Fri Dec 7 17:27:52 2012 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Tue Feb 5 20:22:50 2013 +0000

----------------------------------------------------------------------
 Allura/allura/model/repo.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/2f32ed1c/Allura/allura/model/repo.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repo.py b/Allura/allura/model/repo.py
index 77b97d2..c89be56 100644
--- a/Allura/allura/model/repo.py
+++ b/Allura/allura/model/repo.py
@@ -885,7 +885,7 @@ class ModelCache(object):
             self._cache[cls][key] = val
         elif len(self._cache[cls]) >= self.max_size:
             # remove the least-recently-used cache item
-            instance = self._cache[cls].popitem(last=False)
+            key, instance = self._cache[cls].popitem(last=False)
             session(instance).expunge(instance)
 
     def size(self):


Mime
View raw message