Commit 9be2cefe authored by Jim Fulton's avatar Jim Fulton

Fixed a race condition in the function that computes durectory sizes.

parent 7fa49a7b
......@@ -60,7 +60,11 @@ directory.
... for base, dirs, files in os.walk(d):
... for f in files:
... if f.endswith('.blob'):
... size += os.stat(os.path.join(base, f)).st_size
... try:
... size += os.stat(os.path.join(base, f)).st_size
... except OSError:
... if os.path.exists(os.path.join(base, f)):
... raise
... return size
>>> db.storage._check_blob_size_thread.join()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment