From dffa43051ae29775361231c50aaa4e4fb4909487 Mon Sep 17 00:00:00 2001 From: Zhiqiang Wang Date: Thu, 23 Apr 2015 09:41:35 +0800 Subject: [PATCH] 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 --- src/os/newstore/NewStore.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/os/newstore/NewStore.cc b/src/os/newstore/NewStore.cc index 6d75a3459b4cb..bcd826346776f 100644 --- a/src/os/newstore/NewStore.cc +++ b/src/os/newstore/NewStore.cc @@ -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 -- 2.39.5