summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorN Balachandran <nbalacha@redhat.com>2018-08-28 12:00:33 +0530
committerRaghavendra G <rgowdapp@redhat.com>2018-09-03 05:42:10 +0000
commiteda69f2e327f5f65d14190eed1821a0f45b2f914 (patch)
tree1ba93b17f57f8c1185a0a943c377880e0e12f108 /tests
parent35aa67001c8fac99b040fbc61f36ef4f1b1590ac (diff)
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 <nbalacha@redhat.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/bugs/posix/bug-1619720.t3
1 files changed, 2 insertions, 1 deletions
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;