Revision 45f442f7 snf-pithos-app/pithos/api/util.py

b/snf-pithos-app/pithos/api/util.py
822 822
        backend._use_count = USAGE_LIMIT
823 823
        return backend
824 824

  
825
    def _pool_verify(self, backend):
826
        return 1
827

  
825 828
    def _pool_cleanup(self, backend):
826 829
        c = backend._use_count - 1
827 830
        if c < 0:
......
829 832
            return True
830 833

  
831 834
        backend._use_count = c
835
        if backend.trans is not None:
836
            backend.wrapper.rollback()
837
        if backend.messages:
838
            backend.messages = []
832 839
        return False
833 840

  
834 841
_pithos_backend_pool = PithosBackendPool(size=POOL_SIZE)

Also available in: Unified diff