#2855 kojira: use thread-local session object
Merged a year ago by tkopecek. Opened a year ago by tkopecek.
tkopecek/koji issue2854  into  master

file modified
+5 -1
@@ -70,7 +70,6 @@ 

  

      def __init__(self, manager, data, repodata=None):

          self.manager = manager

-         self.session = manager.session

          self.options = manager.options

          self.logger = logging.getLogger("koji.repo")

          self.current = True
@@ -91,6 +90,11 @@ 

          self._taglist = None

  

      @property

+     def session(self):

+         # return actual thread session object

+         return self.manager.session

+ 

+     @property

      def taglist(self):

          if not self._taglist:

              order = self.session.getFullInheritance(self.tag_id, event=self.event_id)

Metadata Update from @tkopecek:
- Pull-request tagged with: testing-ready

a year ago

Commit f2c314d fixes this pull-request

Pull-Request has been merged by tkopecek

a year ago

Metadata Update from @tkopecek:
- Pull-request untagged with: testing-ready
- Pull-request tagged with: no_qe

a year ago
Metadata