incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [29/50] git commit: [#4691] Flush after computing LCD for each commit
Date Tue, 22 Jan 2013 23:23:18 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/546e1b2e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/546e1b2e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/546e1b2e

Branch: refs/heads/cj/4691
Commit: 546e1b2ec922e70b377f4e6b11c004daf8beab25
Parents: a3d2e05
Author: Cory Johns <johnsca@geek.net>
Authored: Fri Dec 7 17:27:52 2012 +0000
Committer: Cory Johns <johnsca@geek.net>
Committed: Tue Jan 22 23:22:44 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/546e1b2e/Allura/allura/model/repo.py
----------------------------------------------------------------------
diff --git a/Allura/allura/model/repo.py b/Allura/allura/model/repo.py
index aefc1fa..b9aaad0 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