|author||Christopher R. Hertel <firstname.lastname@example.org>||2014-01-31 12:13:30 -0600|
|committer||Vijay Bellur <email@example.com>||2014-02-07 18:56:54 -0800|
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 <firstname.lastname@example.org> Reviewed-on: http://review.gluster.org/6883 Reviewed-by: Shyamsundar Ranganathan <email@example.com> Tested-by: Gluster Build System <firstname.lastname@example.org> Reviewed-by: Vijay Bellur <email@example.com>
Diffstat (limited to 'geo-replication')
0 files changed, 0 insertions, 0 deletions