dht: fix double extra unref of inode at heal path
The loc_wipe is done in the _out_ section, inode_unref(loc.parent) here casues a double extra unref of loc.parent. > Change-Id: I2dc809328d3d34bf7b02c7df9a4f97788af511e6 > Signed-off-by: Kinglong Mee <mijinlong@open-fs.com> (cherry-pick of https://review.gluster.org/#/c/glusterfs/+/21998/) Change-Id: I2dc809328d3d34bf7b02c7df9a4f97788af511e6 updates: bz#1679275 Signed-off-by: Susant Palai <spalai@redhat.com>
This commit is contained in:
parent
bff265f8bc
commit
5c9b2dfb4d
@ -1919,10 +1919,10 @@ dht_heal_path(xlator_t *this, char *path, inode_table_t *itable)
|
||||
*/
|
||||
linked_inode = loc.inode;
|
||||
bname = strtok_r(NULL, "/", &save_ptr);
|
||||
inode_unref(loc.parent);
|
||||
if (!bname) {
|
||||
goto out;
|
||||
}
|
||||
inode_unref(loc.parent);
|
||||
loc.parent = loc.inode;
|
||||
gf_uuid_copy(loc.pargfid, loc.inode->gfid);
|
||||
loc.inode = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user