Remove extra states as they seem useless

This commit is contained in:
Vitaliy Filippov
2019-11-15 14:02:37 +03:00
parent c38c8ab029
commit c7d9dc027b
2 changed files with 6 additions and 10 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ int blockstore::fulfill_read_push(blockstore_operation *op, uint64_t &fulfilled,
op->wait_detail = item_version;
return 0;
}
else if (item_state == ST_DEL_WRITTEN || item_state == ST_DEL_SYNCED || item_state == ST_DEL_MOVED)
else if (IS_DELETE(item_state))
{
// item is unallocated - return zeroes
memset(op->buf + cur_start - op->offset, 0, cur_end - cur_start);