From f87ec977c2c6bf8c562c11ad72069648beb6d8cd Mon Sep 17 00:00:00 2001 From: shishir gowda Date: Fri, 10 Jun 2011 05:11:51 +0000 Subject: DHT selheal dir: Recreate dirs with correct gfid. When selfheal of dir is triggered, make sure the dirs are recreated with the correct gfid, to prevent mismatch of gfids in the backend. Signed-off-by: shishir gowda Signed-off-by: Anand Avati BUG: 2994 ([glusterfs-3.2.1qa2]: untar and rm in parallel hangs untar) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2994 --- xlators/cluster/dht/src/dht-common.c | 1 + 1 file changed, 1 insertion(+) (limited to 'xlators') diff --git a/xlators/cluster/dht/src/dht-common.c b/xlators/cluster/dht/src/dht-common.c index 8ca986d7873..678457a3b86 100644 --- a/xlators/cluster/dht/src/dht-common.c +++ b/xlators/cluster/dht/src/dht-common.c @@ -4107,6 +4107,7 @@ unlock: /* TODO: neater interface needed below */ local->stbuf.ia_type = local->loc.inode->ia_type; + uuid_copy (local->gfid, local->loc.inode->gfid); dht_selfheal_restore (frame, dht_rmdir_selfheal_cbk, &local->loc, local->layout); } else { -- cgit