Allow zero-length overwrites

This commit is contained in:
Vitaliy Filippov
2019-12-21 19:04:36 +03:00
parent 4de5290619
commit 4677ace4cc
4 changed files with 50 additions and 12 deletions
+5
View File
@@ -3,6 +3,11 @@
int blockstore_impl_t::fulfill_read_push(blockstore_op_t *op, void *buf, uint64_t offset, uint64_t len,
uint32_t item_state, uint64_t item_version)
{
if (!len)
{
// Zero-length version - skip
return 1;
}
if (IS_IN_FLIGHT(item_state))
{
// Pause until it's written somewhere