incubator-allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [16/45] git commit: [#6960] flush the session before flushing the BatchIndexer, so it has all objects
Date Fri, 13 Dec 2013 05:08:02 GMT
[#6960] flush the session before flushing the BatchIndexer, so it has all objects


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

Branch: refs/heads/tv/6942
Commit: 1b3248e0cd74e078bf0a6156b54137d577c2a8e6
Parents: 247633b
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Fri Dec 6 21:08:24 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Mon Dec 9 16:15:30 2013 +0000

----------------------------------------------------------------------
 ForgeImporters/forgeimporters/base.py | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/1b3248e0/ForgeImporters/forgeimporters/base.py
----------------------------------------------------------------------
diff --git a/ForgeImporters/forgeimporters/base.py b/ForgeImporters/forgeimporters/base.py
index 066719b..922367d 100644
--- a/ForgeImporters/forgeimporters/base.py
+++ b/ForgeImporters/forgeimporters/base.py
@@ -120,6 +120,7 @@ def import_tool(importer_path, project_name=None, mount_point=None, mount_label=
          M.session.substitute_extensions(M.artifact_orm_session, [M.session.BatchIndexer]):
         app = importer.import_tool(c.project, c.user, project_name=project_name,
                 mount_point=mount_point, mount_label=mount_label, **kw)
+        M.artifact_orm_session.flush()
         M.session.BatchIndexer.flush()
         if app:
             handler.success(app)


Mime
View raw message