cluster/afr: set loc->gfid for building root loc

Change-Id: Icb902846d243df0502f664bfd187280cecd4397c
BUG: 784176
Signed-off-by: Shylesh Kumar <shylesh@gluster.com>
Reviewed-on: http://review.gluster.com/2681
Reviewed-by: Pranith Kumar Karampuri <pranithk@gluster.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
This commit is contained in:
Shylesh Kumar 2012-01-24 12:14:36 +05:30 committed by Vijay Bellur
parent e04d45facc
commit 0694749c3e

View File

@ -477,7 +477,7 @@ afr_build_root_loc (inode_t *inode, loc_t *loc)
loc->inode->ia_type = IA_IFDIR;
memset (loc->inode->gfid, 0, 16);
loc->inode->gfid[15] = 1;
uuid_copy (loc->gfid, loc->inode->gfid);
}
int