Skip to content

Commit

Permalink
Fix lock
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitriy-serdyuk authored and maximecb committed Aug 28, 2017
1 parent 68ff4ea commit afcf625
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fuel/utils/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,12 +343,12 @@ def get_writelock(filename):
# file, we will have to ask write lock for a folder with a different
# name from the file we want a lock on or else write lock will
# try to create a folder with the same name as the file
lock.get_lock(filename + ".writelock")
get_lock(filename + ".writelock")


def release_writelock():
"""Release the previously obtained writelock."""
lock.release_lock()
release_lock()


def release_readlock(lockdir_name):
Expand Down

0 comments on commit afcf625

Please sign in to comment.