From e65160c5bec78e7385eedf3cf02d9cdcb756db0c Mon Sep 17 00:00:00 2001 From: Dan Lambright Date: Thu, 6 Aug 2015 09:59:35 -0400 Subject: cluster/tier: fix demotion when cold tier is EC We did not set the gfid in the loc structure in tier demotion. EC has a sanity check which fails FOPs when the loc gfid mismatches with the file attribute. When the FOP failed demotion was aborted. Change-Id: I69022c9ccb135b86e1feea93b01801b6a4100509 BUG: 1251121 Signed-off-by: Dan Lambright Reviewed-on: http://review.gluster.org/11855 Tested-by: NetBSD Build System Tested-by: Gluster Build System Reviewed-by: mohammed rafi kc Reviewed-by: Venky Shankar --- xlators/cluster/dht/src/tier.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xlators') diff --git a/xlators/cluster/dht/src/tier.c b/xlators/cluster/dht/src/tier.c index 650414c50d9..66a08d10801 100644 --- a/xlators/cluster/dht/src/tier.c +++ b/xlators/cluster/dht/src/tier.c @@ -350,6 +350,8 @@ tier_migrate_using_query_file (void *_args) goto error; } + gf_uuid_copy (loc.gfid, loc.inode->gfid); + ret = syncop_setxattr (this, &loc, migrate_data, 0, NULL, NULL); if (ret) { -- cgit