projects
/
pithos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5578064
)
quotaholder serial handling fix
author
root
<gtsouk@cslab.ece.ntua.gr>
Fri, 14 Sep 2012 13:42:48 +0000
(16:42 +0300)
committer
root
<gtsouk@cslab.ece.ntua.gr>
Fri, 9 Nov 2012 09:02:17 +0000
(11:02 +0200)
snf-pithos-backend/pithos/backends/modular.py
patch
|
blob
|
history
diff --git
a/snf-pithos-backend/pithos/backends/modular.py
b/snf-pithos-backend/pithos/backends/modular.py
index
3836ebf
..
3fa1368
100644
(file)
--- 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()
def fn(self, *args, **kw):
self.wrapper.execute()
+ serials = self.serials
+ self.messages = []
try:
try:
- self.messages = []
ret = func(self, *args, **kw)
for m in self.messages:
self.queue.send(*m)
ret = func(self, *args, **kw)
for m in self.messages:
self.queue.send(*m)
- serials = self.serials
if serials:
self.quotaholder.accept_commission(
context = {},
if serials:
self.quotaholder.accept_commission(
context = {},
@@
-1254,7
+1254,7
@@
class ModularBackend(BaseBackend):
key = '1',
clientkey = 'pithos',
ownerkey = '',
key = '1',
clientkey = 'pithos',
ownerkey = '',
- provisions = ()
+ provisions = (('pithos+', 'diskspace', size),)
)
self.serials.append(serial)
)
self.serials.append(serial)