Whamcloud - gitweb
LU-2285 osp: Send correct object IDs when deleting orphans
authorLi Wei <wei.g.li@intel.com>
Mon, 12 Nov 2012 09:04:45 +0000 (17:04 +0800)
committerOleg Drokin <green@whamcloud.com>
Thu, 15 Nov 2012 21:22:50 +0000 (16:22 -0500)
commit4f8e8dd74b932b78341b5be36979d020f12ea855
tree77e388329010f24ecee29902bd5667fd1afe9832
parent300526627be80c16be05dd1abd9a05b563dc0763
LU-2285 osp: Send correct object IDs when deleting orphans

When processing an orphan deletion request with object ID n, ofd (as
well as obdfilter in older branches) destroys objects from n + 1.
This patch fixes osp to send last used IDs instead of last used ID
plus ones, so that the first orphan in each sequence will be destroyed
correctly.

Change-Id: I6aae73dfdd7fa73aca7b1a8cfe074a1902ad981f
Signed-off-by: Li Wei <wei.g.li@intel.com>
Reviewed-on: http://review.whamcloud.com/4511
Tested-by: Hudson
Reviewed-by: Alex Zhuravlev <bzzz@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/osp/osp_precreate.c