From 85352a77f75df6e3a9ee118f390173194c4ccfa3 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 14 Sep 2012 16:42:48 +0300 Subject: [PATCH] quotaholder serial handling fix --- snf-pithos-backend/pithos/backends/modular.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/snf-pithos-backend/pithos/backends/modular.py b/snf-pithos-backend/pithos/backends/modular.py index 3836ebf..3fa1368 100644 --- a/snf-pithos-backend/pithos/backends/modular.py +++ b/snf-pithos-backend/pithos/backends/modular.py @@ -109,12 +109,12 @@ def backend_method(func=None, autocommit=1): def fn(self, *args, **kw): self.wrapper.execute() + serials = self.serials + self.messages = [] try: - self.messages = [] ret = func(self, *args, **kw) for m in self.messages: self.queue.send(*m) - serials = self.serials if serials: self.quotaholder.accept_commission( context = {}, @@ -1254,7 +1254,7 @@ class ModularBackend(BaseBackend): key = '1', clientkey = 'pithos', ownerkey = '', - provisions = () + provisions = (('pithos+', 'diskspace', size),) ) self.serials.append(serial) -- 1.7.10.4