From 930f709881d85774baab1df57c2c03de93110bf7 Mon Sep 17 00:00:00 2001 From: Vikas Gorur Date: Thu, 3 Dec 2009 03:57:15 +0000 Subject: cluster/afr: Don't mark the fop as failed if rmdir returns ENOTEMPTY. Marking the fop as failed in the ENOTEMPTY case led to spurious entry self-heals. Signed-off-by: Vikas Gorur Signed-off-by: Anand V. Avati BUG: 326 ([2.0.8rc9] Spurious self-heal) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=326 --- xlators/cluster/afr/src/afr-dir-write.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/cluster/afr/src') diff --git a/xlators/cluster/afr/src/afr-dir-write.c b/xlators/cluster/afr/src/afr-dir-write.c index 5387ceb3d63..1d7d3f19557 100644 --- a/xlators/cluster/afr/src/afr-dir-write.c +++ b/xlators/cluster/afr/src/afr-dir-write.c @@ -1851,7 +1851,7 @@ afr_rmdir_wind_cbk (call_frame_t *frame, void *cookie, xlator_t *this, local->read_child_returned = _gf_true; } - if (afr_fop_failed (op_ret, op_errno)) + if (afr_fop_failed (op_ret, op_errno) && (op_errno != ENOTEMPTY)) afr_transaction_fop_failed (frame, this, child_index); if (op_ret != -1) { -- cgit