server/checkintegrity.py
branchstable
changeset 6889 37668bf302f5
parent 6624 b30e5428048b
child 6931 0af44a38fe41
child 7035 8d2cf36bd79d
--- a/server/checkintegrity.py	Tue Jan 25 10:01:19 2011 +0100
+++ b/server/checkintegrity.py	Tue Jan 25 12:09:59 2011 +0100
@@ -131,8 +131,8 @@
     # attribute to their current value
     source = repo.system_source
     for eschema in etypes:
-        for entity in session.execute('Any X WHERE X is %s' % eschema).entities():
-            source.fti_index_entity(session, entity)
+        rset = session.execute('Any X WHERE X is %s' % eschema)
+        source.fti_index_entities(session, rset.entities())
         if withpb:
             pb.update()