[Asterisk-code-review] bridges: Remove reliance on stasis caching (asterisk[master])
Kevin Harwell
asteriskteam at digium.com
Fri Sep 21 12:43:48 CDT 2018
Kevin Harwell has posted comments on this change. ( https://gerrit.asterisk.org/10227 )
Change subject: bridges: Remove reliance on stasis caching
......................................................................
Patch Set 1: Code-Review-1
(4 comments)
https://gerrit.asterisk.org/#/c/10227/1/include/asterisk/stasis_bridges.h
File include/asterisk/stasis_bridges.h:
https://gerrit.asterisk.org/#/c/10227/1/include/asterisk/stasis_bridges.h@73
PS1, Line 73: * \since 13.24
: * \since 15.6
: * \since 16.1
Delete these as this is master only
https://gerrit.asterisk.org/#/c/10227/1/main/stasis_bridges.c
File main/stasis_bridges.c:
https://gerrit.asterisk.org/#/c/10227/1/main/stasis_bridges.c@1374
PS1, Line 1374: * \since 12.0.0
delete
https://gerrit.asterisk.org/#/c/10227/1/main/stasis_bridges.c@1412
PS1, Line 1412: * \since 12.0.0
delete
https://gerrit.asterisk.org/#/c/10227/1/res/ari/resource_bridges.c
File res/ari/resource_bridges.c:
https://gerrit.asterisk.org/#/c/10227/1/res/ari/resource_bridges.c@912
PS1, Line 912: ao2_ref(snapshots, -1);
: ast_ari_response_alloc_failed(response);
: return;
: }
: }
: ao2_iterator_destroy(&i);
: ao2_ref(snapshots, -1);
Looks like "snapshots" is being unref'd twice? Once for each of these paths and then once by the RAII_VAR?
If that's the case these two snapshot unrefs can be removed.
--
To view, visit https://gerrit.asterisk.org/10227
To unsubscribe, or for help writing mail filters, visit https://gerrit.asterisk.org/settings
Gerrit-Project: asterisk
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I7049b80efa88676ce5c4666f818fa18ad1985369
Gerrit-Change-Number: 10227
Gerrit-PatchSet: 1
Gerrit-Owner: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: George Joseph <gjoseph at digium.com>
Gerrit-Reviewer: Jenkins2
Gerrit-Reviewer: Kevin Harwell <kharwell at digium.com>
Gerrit-Comment-Date: Fri, 21 Sep 2018 17:43:48 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: Yes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-code-review/attachments/20180921/f14ff18c/attachment.html>
More information about the asterisk-code-review
mailing list