Revision 263d27d9 snf-pithos-backend/pithos/backends/modular.py
b/snf-pithos-backend/pithos/backends/modular.py | ||
---|---|---|
1193 | 1193 |
self._can_read(user, account, container, name) |
1194 | 1194 |
return (account, container, name) |
1195 | 1195 |
|
1196 |
@backend_method |
|
1197 |
def lock_path(self, path): |
|
1198 |
node = self.node.node_lookup(path, for_update=True) |
|
1199 |
|
|
1196 | 1200 |
@backend_method(autocommit=0) |
1197 | 1201 |
def get_block(self, hash): |
1198 | 1202 |
"""Return a block's data.""" |
... | ... | |
1250 | 1254 |
|
1251 | 1255 |
def _lookup_container(self, account, container): |
1252 | 1256 |
path = '/'.join((account, container)) |
1253 |
node = self.node.node_lookup(path, for_update=True)
|
|
1257 |
node = self.node.node_lookup(path) |
|
1254 | 1258 |
if node is None: |
1255 | 1259 |
raise ItemNotExists('Container does not exist') |
1256 | 1260 |
return path, node |
Also available in: Unified diff