If vdi objects are deleted from the vdi bitmap, sheepdog could fail to look up vdis. So it is safe to keep them unremoved. Signed-off-by: MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp> --- sheep/vdi.c | 4 ---- 1 files changed, 0 insertions(+), 4 deletions(-) diff --git a/sheep/vdi.c b/sheep/vdi.c index a88b4e7..ea4442d 100644 --- a/sheep/vdi.c +++ b/sheep/vdi.c @@ -391,10 +391,6 @@ static void delete_one(struct work *work, int idx) vid_to_data_oid(inode.data_vdi_id[i], i), inode.nr_copies); } - - if (remove_object(entries, nr_nodes, dw->epoch, vid_to_vdi_oid(vdi_id), - sys->nr_sobjs)) - eprintf("failed to remove vdi objects %x\n", vdi_id); } static void __start_deletion(struct work *work, int idx); -- 1.5.6.5 |