From eda69f2e327f5f65d14190eed1821a0f45b2f914 Mon Sep 17 00:00:00 2001 From: N Balachandran Date: Tue, 28 Aug 2018 12:00:33 +0530 Subject: cluster/dht: In rename, unlink after creating linkto file The linkto file creation for the dst was done in parallel with the unlink of the old src linkto. If these operations reached the brick out of order, we end up with a dst linkto file without a .glusterfs handle. Fixed by the unlinking only after the linkto file creation has completed. Change-Id: I4246f7655f5bc180f5ded7fd34d263b7828a8110 fixes: bz#1621981 Signed-off-by: N Balachandran --- tests/bugs/posix/bug-1619720.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/bugs') diff --git a/tests/bugs/posix/bug-1619720.t b/tests/bugs/posix/bug-1619720.t index e5d9a80c601..bfd304dc809 100755 --- a/tests/bugs/posix/bug-1619720.t +++ b/tests/bugs/posix/bug-1619720.t @@ -48,10 +48,11 @@ TEST mv $M0/tmp/file-2 $M0/tmp/file-3 TEST mv -f $M0/tmp/file-1 $M0/tmp/file-3 + TEST getfattr -n $pgfid_xattr_name $B0/${V0}0/tmp/file-3 TEST getfattr -n $pgfid_xattr_name $B0/${V0}1/tmp/file-3 # Not required for the test but an extra check if required. # The linkto file was not renamed Without the fix. #TEST mv $M0/tmp/file-3 $M0/tmp/file-6 -#cleanup; +cleanup; -- cgit