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
[17/42] git commit: [#4691] Flush new LCDs sooner so they never get
lost from expunging
[#4691] Flush new LCDs sooner so they never get lost from expunging
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/f3e88094
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/f3e88094
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/f3e88094
Branch: refs/heads/master
Commit: f3e880947e3e53355c5ac21d35a1445dfb714684
Parents: 31c81dc
Author: Cory Johns <jo...@geek.net>
Authored: Wed Dec 12 19:06:07 2012 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Tue Feb 5 20:22:51 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/f3e88094/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()