path: root/geo-replication
diff options
authorChristopher R. Hertel <>2014-01-31 12:13:30 -0600
committerVijay Bellur <>2014-02-07 18:56:54 -0800
commit13b68bc693e92378f78f452763a6097bf1755072 (patch)
treeb1fafa7ed731ae3d299077274607567b32730707 /geo-replication
parent38e23d727a8fb5a4d688d9f8dc9178e6718215f5 (diff)
features/index: Close directories left open on error.
Two directory streams are opened, but not always closed if the function exits with an error. This patch aims to ensure that the directories are closed in call cases. Some return values may be explicitly discarded. This is done to avoid having a successful call to closedir() overwrite the value of ret. Also, the errno value is preserved in case a calling function needs to check errno. BUG: 789278 CID: 1124710 CID: 1124711 Change-Id: I6bf3b5c9c6a1ec9a99cc9178243ea98572c2bac2 Signed-off-by: Christopher R. Hertel <> Reviewed-on: Reviewed-by: Shyamsundar Ranganathan <> Tested-by: Gluster Build System <> Reviewed-by: Vijay Bellur <>
Diffstat (limited to 'geo-replication')
0 files changed, 0 insertions, 0 deletions