summaryrefslogtreecommitdiffstats
path: root/xlators/features/arbiter
diff options
context:
space:
mode:
authorSakshi <sabansal@redhat.com>2015-08-05 16:05:22 +0530
committerRaghavendra G <rgowdapp@redhat.com>2016-04-10 22:23:48 -0700
commit0a01154c68cb5eb884096fc67288a71c391d9160 (patch)
tree8251fa978901dbfc9db2e97e4b5a40e65d72210e /xlators/features/arbiter
parent6a1d6da4588726ea0e1d0b0b6eb204a9d829db19 (diff)
dht: lock on subvols to prevent rename and lookup selfheal race
This patch addresses two races while renaming directories: 1) While renaming src to dst, if a lookup selfheal is triggered it can recreate src on those subvols where rename was successful. This leads to multiple directories (src and dst) having same gfid. To avoid this we must take locks on all subvols with src. 2) While renaming if the dst exists and a lookup selfheal is triggered it will find anomalies in the dst layout and try to heal the stale layout. To avoid this we must take lock on any one subvol with dst. Backport of http://review.gluster.org/#/c/11880/ > Change-Id: I637f637d3241d9065cd5be59a671c7e7ca3eed53 > BUG: 1252244 > Signed-off-by: Sakshi <sabansal@redhat.com> Change-Id: I637f637d3241d9065cd5be59a671c7e7ca3eed53 BUG: 1324381 Signed-off-by: Sakshi <sabansal@redhat.com> Reviewed-on: http://review.gluster.org/13917 Smoke: Gluster Build System <jenkins@build.gluster.com> NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org> CentOS-regression: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Raghavendra G <rgowdapp@redhat.com>
Diffstat (limited to 'xlators/features/arbiter')
0 files changed, 0 insertions, 0 deletions