This would allow pre-clearing a size change without actually updating the size. This would allow more elegant validation of size changes, without having to attempt the final save.
The downside is that the check and ultimate save would need to be done atomically, as a check would not actually reserve the usage to guard against a race condition with other concurrent uploads.
This would allow pre-clearing a size change without actually updating the size. This would allow more elegant validation of size changes, without having to attempt the final save.
The downside is that the check and ultimate save would need to be done atomically, as a check would not actually reserve the usage to guard against a race condition with other concurrent uploads.
See: https://github.com/girder/dkc-next/pull/145#discussion_r574010090