Re: [devel] [PATCH 2 of 3] amfnd: Fix all Cppcheck 1.77 issues [#2341] V2

2017-03-14 Thread A V Mahesh
Hi Gary, Sorry I over looked it , will see and fix it , while fixing other Amf Dev review comments ( may be in V3 ). -AVM On 3/15/2017 11:01 AM, Gary Lee wrote: > Hi Mahesh > > Did you see my proposed change? > > The ‘delete rec’ statement below will cause a double free, unless I’m >

Re: [devel] [PATCH 2 of 3] amfnd: Fix all Cppcheck 1.77 issues [#2341] V2

2017-03-14 Thread Gary Lee
Hi Mahesh Did you see my proposed change? The ‘delete rec’ statement below will cause a double free, unless I’m mistaken. Thanks Gary void avnd_comp_pm_rec_del(AVND_CB *cb, AVND_COMP *comp, AVND_COMP_PM_REC *rec) { - uint32_t rc = NCSCC_RC_SUCCESS; SaUint64T pid =

Re: [devel] Review Request for amf: Update PR/README for SC absence feature [#2179]

2017-03-14 Thread praveen malviya
Hi Minh, Ack with two comments in attached read me. Thanks, Praveen On 10-Mar-17 11:14 AM, minh chau wrote: Hi all, Please help to review documentation changes. Files are attached, they also can be found at below links:

Re: [devel] [PATCH 0 of 3] Review Request for amf: Fix all Cppcheck 1.77 issues [#2341] V1

2017-03-14 Thread A V Mahesh
Hi Gary, The V1 patch is failing to apply cleanly on OpenSAF 5.2.RC1 tagged code, so i re-based with V2 , also fixed additional issue , that you said in V1 and they are considerable so I republished V2 with completely. -AVM On 3/14/2017 12:39 PM, Gary Lee wrote: > Hi Mahesh > > Perhaps it's

[devel] [PATCH 3 of 3] amfa: Fix all Cppcheck 1.77 issues [#2341] V2

2017-03-14 Thread A V Mahesh
src/amf/agent/ava_hdl.cc | 13 + src/amf/agent/ava_mds.cc | 12 src/amf/agent/ava_op.cc | 11 --- src/amf/amfwd/amf_wdog.c | 2 +- src/amf/common/d2nmsg.c | 7 ++- src/amf/common/n2avamsg.c | 1 - src/amf/tools/amf_pm.c| 4 +--- 7 files

[devel] [PATCH 1 of 3] amfd: Fix all Cppcheck 1.77 issues [#2341] V2

2017-03-14 Thread A V Mahesh
src/amf/amfd/app.cc|3 +- src/amf/amfd/apptype.cc| 20 ++ src/amf/amfd/chkop.cc |3 +- src/amf/amfd/ckpt_dec.cc | 15 ++--- src/amf/amfd/ckpt_edu.cc |3 +- src/amf/amfd/ckpt_enc.cc | 60 src/amf/amfd/clm.cc

[devel] [PATCH 0 of 3] Review Request for amf: Fix all Cppcheck 1.77 issues [#2341] V2

2017-03-14 Thread A V Mahesh
Summary:amf: Fix all Cppcheck 1.77 issues [#2341] V2 Review request for Trac Ticket(s): #2341 Peer Reviewer(s): Amf Dev Pull request to: <> Affected branch(es): default Development branch: default Impacted area Impact y/n

[devel] [PATCH 2 of 3] amfnd: Fix all Cppcheck 1.77 issues [#2341] V2

2017-03-14 Thread A V Mahesh
src/amf/amfnd/amfnd.cc | 15 +-- src/amf/amfnd/cbq.cc | 9 +++-- src/amf/amfnd/chc.cc | 29 +++-- src/amf/amfnd/clc.cc | 37 ++--- src/amf/amfnd/comp.cc| 8 +++- src/amf/amfnd/compdb.cc | 17

Re: [devel] [PATCH 1 of 1] base: Improve trace by using tid instead of pid [#2370]

2017-03-14 Thread Anders Widell
Ack. regards, Anders Widell On 03/13/2017 01:16 PM, Hans Nordeback wrote: > src/base/logtrace.c | 7 ++- > 1 files changed, 6 insertions(+), 1 deletions(-) > > > Even though not being LSB it would be good to use thread id instead of > process id in trace. > > diff --git

[devel] [PATCH 0 of 1] Review Request for build: Add missing README files to distribution tarball [#2374]

2017-03-14 Thread Anders Widell
Summary: build: Add missing README files to distribution tarball [#2374] Review request for Trac Ticket(s): 2374 Peer Reviewer(s): Ramesh Pull request to: Affected branch(es): default(5.2) Development branch: default Impacted area Impact y/n

[devel] [PATCH 1 of 1] build: Add missing README files to distribution tarball [#2374]

2017-03-14 Thread Anders Widell
python/Makefile.am | 4 +++- src/amf/Makefile.am | 9 - src/ckpt/Makefile.am | 7 ++- src/clm/Makefile.am | 6 +- src/dtm/Makefile.am | 3 +++ src/imm/Makefile.am | 4 +++- src/log/Makefile.am | 8 +++- src/ntf/Makefile.am | 8 +++- src/plm/Makefile.am |

[devel] OpenSAF 5.2.RC1 tagged

2017-03-14 Thread Anders Widell
Hi all! We have now tagged and released OpenSAF 5.2.RC1 (release candidate 1), and we are planning for a second release candidate within the next one or two weeks. After the second release candidate (5.2.RC2) has been tagged, all branches in the Mercurial repository will be under change

[devel] [PATCH 1 of 1] base: Cache the FQDN to avoid problems caused by slow DNS responses [#2347]

2017-03-14 Thread Anders Widell
src/base/conf.cc| 66 +--- src/base/conf.h | 5 src/nid/nodeinit.cc | 5 3 files changed, 62 insertions(+), 14 deletions(-) Read the fully qualified domain name once and store it in the local file system. This will solve

[devel] [PATCH 0 of 1] Review Request for base: Cache the FQDN to avoid problems caused by slow DNS responses [#2347]

2017-03-14 Thread Anders Widell
Summary: base: Cache the FQDN to avoid problems caused by slow DNS responses [#2347] Review request for Trac Ticket(s): 2347 Peer Reviewer(s): Ramesh Pull request to: Affected branch(es): default(5.2) Development branch: default Impacted area Impact y/n

[devel] [PATCH 1 of 1] amfd: handle BAD_HANDLE return during config read [#2361]

2017-03-14 Thread nagendra . k
osaf/services/saf/amf/amfd/imm.cc | 18 +- osaf/services/saf/amf/amfd/role.cc | 4 ++-- 2 files changed, 15 insertions(+), 7 deletions(-) If Immnd is killed, Amfd re-initializes with imm and re-reads configuration. During configuration read if Immnd is again killed, Amfd

[devel] [PATCH 0 of 1] Review Request for amfd: handle BAD_HANDLE return during config read [#2361]

2017-03-14 Thread nagendra . k
Summary: amfd: handle BAD_HANDLE return during config read [#2361] Review request for Trac Ticket(s): #2361 Peer Reviewer(s): Amf Dev Pull request to: <> Affected branch(es): All Development branch: opensaf-5.1.x Impacted area Impact y/n

Re: [devel] [PATCH 1 of 1] log: fix logd crash on Active side [#2362]

2017-03-14 Thread Vu Minh Nguyen
Ack with minor comment, see [Vu]. Regards, Vu > -Original Message- > From: Canh Van Truong [mailto:canh.v.tru...@dektech.com.au] > Sent: Monday, March 13, 2017 1:19 PM > To: lennart.l...@ericsson.com; vu.m.ngu...@dektech.com.au; > mahesh.va...@oracle.com > Cc:

Re: [devel] [PATCH 1 of 1] fm: changing the log level from ER to WA [#2363]

2017-03-14 Thread praveen malviya
Ack, code review only. Thanks, Praveen On 14-Mar-17 11:54 AM, ramesh.bet...@oracle.com wrote: > src/fm/fmd/fm_main.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > > diff --git a/src/fm/fmd/fm_main.c b/src/fm/fmd/fm_main.c > --- a/src/fm/fmd/fm_main.c > +++

[devel] [PATCH 0 of 1] Review Request for fm: changing the log level from ER to WA [#2363]

2017-03-14 Thread ramesh . betham
Summary: fm: changing the log level from ER to WA [#2363] Review request for Trac Ticket(s): 2363 Peer Reviewer(s): praveen Affected branch(es): default(5.2) Development branch: default Impacted area Impact y/n Docs

[devel] [PATCH 1 of 1] fm: changing the log level from ER to WA [#2363]

2017-03-14 Thread ramesh . betham
src/fm/fmd/fm_main.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/fm/fmd/fm_main.c b/src/fm/fmd/fm_main.c --- a/src/fm/fmd/fm_main.c +++ b/src/fm/fmd/fm_main.c @@ -608,7 +608,7 @@ static void fm_mbx_msg_handler(FM_CB *fm * (old-Active) is still in

Re: [devel] [PATCH 0 of 3] Review Request for amf: Fix all Cppcheck 1.77 issues [#2341] V1

2017-03-14 Thread Gary Lee
Hi Mahesh Perhaps it's easier if you pushed V1 first. Otherwise the patches get even bigger and harder to review. I was referring to regression tests failing without the changes I proposed, when I said legacy tests failed. thanks > On 14 Mar 2017, at 6:01 pm, A V Mahesh

Re: [devel] [PATCH 0 of 3] Review Request for amf: Fix all Cppcheck 1.77 issues [#2341] V1

2017-03-14 Thread A V Mahesh
Hi Gary, Previously you found some old application issue and you resolved it is that related to this path or different issue ? -AVM On 3/14/2017 12:20 PM, A V Mahesh wrote: > Hi Gar, > > Thanks for the review. > > On 3/14/2017 11:47 AM, Gary Lee wrote: >> By the way, I still see cppcheck

Re: [devel] [PATCH 0 of 3] Review Request for amf: Fix all Cppcheck 1.77 issues [#2341] V1

2017-03-14 Thread A V Mahesh
Hi Gar, Thanks for the review. On 3/14/2017 11:47 AM, Gary Lee wrote: > By the way, I still see cppcheck issues in AMF when I run ‘make cppcheck’, > but this is a great improvement. Ok will re-run the Cppcheck and if we find considerable , I will re-publish the V2 patch. -AVM On 3/14/2017

Re: [devel] [PATCH 0 of 3] Review Request for amf: Fix all Cppcheck 1.77 issues [#2341] V1

2017-03-14 Thread Gary Lee
Hi Mahesh Ack for the series (regression tests run) with the following changes. By the way, I still see cppcheck issues in AMF when I run ‘make cppcheck’, but this is a great improvement. Thanks Gary diff --git a/src/amf/amfd/csi.cc b/src/amf/amfd/csi.cc --- a/src/amf/amfd/csi.cc +++