11684: ArvadosFile.flush() now check if it is the only owner of a bufferblock before...
authorLucas Di Pentima <lucas@curoverse.com>
Tue, 30 May 2017 20:56:07 +0000 (17:56 -0300)
committerLucas Di Pentima <lucas@curoverse.com>
Tue, 30 May 2017 20:56:07 +0000 (17:56 -0300)
commit028e052db597498ee5c1412b606fa178c621b3ca
treeca8acd70a5bed31f32bc88f8c7e90164e9c24747
parentb5d352d6099b60db5dcdd9183dcab3e8e17d729e
11684: ArvadosFile.flush() now check if it is the only owner of a bufferblock before deleting it, so the extra argument is not required.
On commit_all(), always check if the owner attribute is an instance of ArvadosFile before calling flush()
Fixed a couple tests that were mocking bufferblock.owner so that they work with this new behavior.
sdk/python/arvados/arvfile.py
sdk/python/tests/test_arvfile.py