mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
os/NewStore: don't clear overlay in the create/append case of write
Shouldn't clear the overlay in the create/append case of write. Otherwise, this removes the overlay data and leads to data loss. Signed-off-by: Zhiqiang Wang <zhiqiang.wang@intel.com>
This commit is contained in:
parent
f9f9e1b105
commit
dffa43051a
@ -3217,7 +3217,6 @@ int NewStore::_do_write(TransContext *txc,
|
||||
if (o->onode.size <= offset ||
|
||||
o->onode.size == 0 ||
|
||||
o->onode.data_map.empty()) {
|
||||
_do_overlay_clear(txc, o);
|
||||
uint64_t x_offset;
|
||||
if (o->onode.data_map.empty()) {
|
||||
// create
|
||||
|
Loading…
Reference in New Issue
Block a user