]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: Add missing punch_hole call so that object offsets are updated.
authorAbutalib Aghayev <agayev@cs.cmu.edu>
Fri, 12 Jun 2020 14:51:59 +0000 (10:51 -0400)
committerAbutalib Aghayev <agayev@cs.cmu.edu>
Fri, 12 Jun 2020 14:51:59 +0000 (10:51 -0400)
commit6317feae56614529cd42553a6a7dba6f52999b5f
tree228acf2a9e5dab05ee76730d325333474883d07e
parent0d96ff19afb4161d9b113ef49dea76bce6797401
os/bluestore: Add missing punch_hole call so that object offsets are updated.

Rearranged an HM-SMR related code in _do_write_small so that it reuses
previously calculated offsets and, most importantly, added the missing
onode->extent_map.punch_hole call that releases overwritten blobs and updates
the location of the object to point to the latest copy.  Without it the OSD
could not restart becase a stale copy of osd_superblock object was being read.

Signed-off-by: Abutalib Aghayev <agayev@cs.cmu.edu>
src/os/bluestore/BlueStore.cc