incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From john...@apache.org
Subject [39/50] git commit: [#4691] Flush new LCDs sooner so they never get lost from expunging
Date Tue, 22 Jan 2013 23:23:18 GMT
[#4691] Flush new LCDs sooner so they never get lost from expunging

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/70e24d67
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/70e24d67
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/70e24d67

Branch: refs/heads/cj/4691
Commit: 70e24d67515a2ef5f217660ab4a4dd79a483ac5c
Parents: f7d5676
Author: Cory Johns <johnsca@geek.net>
Authored: Wed Dec 12 19:06:07 2012 +0000
Committer: Cory Johns <johnsca@geek.net>
Committed: Tue Jan 22 23:22:46 2013 +0000

----------------------------------------------------------------------
 scripts/refresh-last-commits.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/70e24d67/scripts/refresh-last-commits.py
----------------------------------------------------------------------
diff --git a/scripts/refresh-last-commits.py b/scripts/refresh-last-commits.py
index 531fa83..02dca6d 100644
--- a/scripts/refresh-last-commits.py
+++ b/scripts/refresh-last-commits.py
@@ -113,6 +113,7 @@ def refresh_repo_lcds(commit_ids, options):
         #        lcd_cache._hits[M.repo.LastCommit] * 100 / lcd_cache._accesses[M.repo.LastCommit],
         #        len(lcd_cache._cache[M.repo.LastCommit]),
         #    )
+        ThreadLocalORMSession.flush_all()
         if len(timings) % debug_step == 0:
             mt = max(timings)
             tt = sum(timings)
@@ -136,7 +137,6 @@ def refresh_repo_lcds(commit_ids, options):
                     len(lcd_cache.get(M.repo.TreesDoc, dict(_id=commit._id)).tree_ids))
             lcd_cache._get_walks_max = 0
             lcd_cache._build_walks_max = 0
-            ThreadLocalORMSession.flush_all()
             ThreadLocalORMSession.close_all()
     ThreadLocalORMSession.flush_all()
     ThreadLocalORMSession.close_all()


Mime
View raw message