Bug 1005164 - Add code for syncenv_destroy() and clean up syncenv_new()
Summary: Add code for syncenv_destroy() and clean up syncenv_new()
Keywords:
Status: CLOSED DUPLICATE of bug 1093594
Alias: None
Product: GlusterFS
Classification: Community
Component: libglusterfsclient
Version: mainline
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: santosh pradhan
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-09-06 10:41 UTC by santosh pradhan
Modified: 2014-09-21 22:54 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-06-10 10:37:51 UTC
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Embargoed:


Attachments (Terms of Use)

Description santosh pradhan 2013-09-06 10:41:33 UTC
Description of problem:

1. syncenv_destroy() does not have any code i.e. empty routine. Which should have free()d the syncenv structure allocated in syncenv_new().

2. In syncenv_new(), procmax was not validated for negative value.

3. syncenv_new(): pthread_create() failure still returns the valid syncenv structure allocated instead of NULL.


Version-Release number of selected component (if applicable):


How reproducible:

N/A

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Anand Avati 2013-09-06 11:29:03 UTC
REVIEW: http://review.gluster.org/5838 (libglusterfs: clean up for syncenv_new/destroy()) posted (#1) for review on master by Santosh Pradhan (spradhan)

Comment 2 Anand Avati 2013-09-11 07:23:20 UTC
REVIEW: http://review.gluster.org/5838 (libglusterfs: clean up for syncenv_new/destroy()) posted (#2) for review on master by Santosh Pradhan (spradhan)

Comment 3 Anand Avati 2013-09-12 08:40:33 UTC
REVIEW: http://review.gluster.org/5838 (libglusterfs: clean up for syncenv_new/destroy()) posted (#3) for review on master by Santosh Pradhan (spradhan)

Comment 4 Anand Avati 2013-09-12 08:48:29 UTC
REVIEW: http://review.gluster.org/5838 (libglusterfs: clean up for syncenv_new/destroy()) posted (#4) for review on master by Santosh Pradhan (spradhan)

Comment 5 santosh pradhan 2014-06-10 10:37:51 UTC

*** This bug has been marked as a duplicate of bug 1093594 ***


Note You need to log in before you can comment on or make changes to this bug.