diff options
Diffstat (limited to 'src/py/imc/blobclient.py')
-rwxr-xr-x | src/py/imc/blobclient.py | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/py/imc/blobclient.py b/src/py/imc/blobclient.py index 8d54ffe..f4879af 100755 --- a/src/py/imc/blobclient.py +++ b/src/py/imc/blobclient.py @@ -165,8 +165,11 @@ class BlobClient: # TODO: # pend operation when client can't imc call server return False - # TODO: - # if commit success , copy tmpfile to location + else: + # TODO: + # if commit success , copy tmpfile to location + if ret: + blobhandle.copy_tmp() # TODO: # opencounts ? @@ -227,7 +230,8 @@ class BlobClient: self._opencounts[blob] += 1 return handle - def close(self, blobhandle): - blob = ''.join([blobhandle._name, '_', - str(blobhandle.get_rev())]) - self._opencounts[blob] -= 1 + def close(self, blobhandle): + blob = ''.join([blobhandle._name, '_', + str(blobhandle.get_rev())]) + self._opencounts[blob] -= 1 + |