<p style="white-space: pre-wrap; word-wrap: break-word;">I missed this the first time around.</p><p>Patch set 3:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p><a href="https://gerrit.asterisk.org/10293">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.asterisk.org/#/c/10293/3/main/lock.c">File main/lock.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/10293/3/main/lock.c@171">Patch Set #3, Line 171:</a> <code style="font-family:monospace,monospace">     int canlog = lt && strcmp(filename, "logger.c");</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">For this function and the rwlock destroy you need to continue using t->flags.tracking instead of the lt variable.  __ast_mutex_logger() uses canlog and that is checked regardless of the lt state.  If the tracker hasn't been setup, we won't set it up now and thus we won't log on errors.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Probably should use t->flags.tracking for all the canlog variables in all the other functions for completeness.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/#/c/10293/3/main/lock.c@696">Patch Set #3, Line 696:</a> <code style="font-family:monospace,monospace">  int canlog = lt && strcmp(filename, "logger.c");</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">same about t->flags.tracking</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/10293">change 10293</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/10293"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Iabd650908901843e9fff47ef1c539f0e1b8cb13b </div>
<div style="display:none"> Gerrit-Change-Number: 10293 </div>
<div style="display:none"> Gerrit-PatchSet: 3 </div>
<div style="display:none"> Gerrit-Owner: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 (1000185) </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 28 Sep 2018 18:29:43 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>