Do not block reads by previous unfinished writes

This commit is contained in:
Vitaliy Filippov
2020-03-13 21:28:49 +03:00
parent eba053febe
commit 6982fe1255
5 changed files with 6 additions and 21 deletions
+1
View File
@@ -50,6 +50,7 @@ Input:
- version == 0: read the last stable version,
- version == UINT64_MAX: read the last version,
- otherwise: read the newest version that is <= the specified version
- reads aren't guaranteed to return data from previous unfinished writes
For writes:
- if version == 0, a new version is assigned automatically
- if version != 0, it is assigned for the new write if possible, otherwise -EINVAL is returned