Skip to content

Commit

Permalink
Remove documentation of obsolete requirement
Browse files Browse the repository at this point in the history
Callers are free to release the global lock in BlockCache.get()
managed blocks since commit d8c3fff00b93.
  • Loading branch information
Nikratio committed Sep 23, 2018
1 parent 3031269 commit 7373c90
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/s3ql/block_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -723,10 +723,7 @@ def _removal_loop(self):
def get(self, inode, blockno):
"""Get file handle for block `blockno` of `inode`
This method releases the global lock. The managed block, however,
is executed with the global lock acquired and MUST NOT release
it. This ensures that only one thread is accessing a given block
at a time.
This method releases the global lock.
Note: if `get` and `remove` are called concurrently, then it is
possible that a block that has been requested with `get` and
Expand Down

0 comments on commit 7373c90

Please sign in to comment.