You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2013/02/05 21:23:35 UTC

[6/42] git commit: [#4691] Flush after computing LCD for each commit

[#4691] Flush after computing LCD for each commit

Signed-off-by: Cory Johns <jo...@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/master
Commit: 2f32ed1cdb3c26f6188eab42e4d23b4fe959b896
Parents: 73fb34e
Author: Cory Johns <jo...@geek.net>
Authored: Fri Dec 7 17:27:52 2012 +0000
Committer: Tim Van Steenburgh <tv...@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):