cubicweb/server/ssplanner.py
changeset 12756 d91c229de97f
parent 12567 26744ad37953
child 12888 24a20d2b8c84
--- a/cubicweb/server/ssplanner.py	Thu Aug 01 02:51:52 2019 +0200
+++ b/cubicweb/server/ssplanner.py	Thu Aug 01 05:42:45 2019 +0200
@@ -344,6 +344,7 @@
     def __init__(self, plan, union):
         Step.__init__(self, plan)
         self.union = union
+        self.rql_query_tracing_token = None
 
     def execute(self):
         """call .syntax_tree_search with the given syntax tree on each
@@ -365,7 +366,8 @@
             cachekey = union.as_string()
         # get results for query
         source = cnx.repo.system_source
-        result = source.syntax_tree_search(cnx, union, args, cachekey)
+        result = source.syntax_tree_search(cnx, union, args, cachekey,
+                                           rql_query_tracing_token=self.rql_query_tracing_token)
         return result
 
     def mytest_repr(self):