Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
stored: Fix getting size of a chunked volume.
We could end up in trying to get the current volume size from the backing store while the last chunk of the volume was still inflight to the backing store. Previously we added support for getting the size from the ordered circular list but that is only part of the time it takes for a volume to get flushed to the backing store. When the last volume chunk is still inflight we get the wrong size when we list the volume chunks on the backing store as the chunk might be still growing in size while being uploaded.
- Loading branch information
1 parent
a5e5e4d
commit 7c0a031
Showing
2 changed files
with
107 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters