<p>Joshua Colp <strong>merged</strong> this change.</p><p><a href="https://gerrit.asterisk.org/9032">View Change</a></p><div style="white-space:pre-wrap">Approvals:
Richard Mudgett: Looks good to me, but someone else must approve
Joshua Colp: Looks good to me, approved; Approved for Submit
</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">config.c: Fix successful DELETE treated as failure<br><br>The config engine destroy_func callback function returns the number of<br>rows deleted or -1 on error. But the function<br>ast_destroy_realtime_fields treated non-zero return values as error.<br><br>ASTERISK-27863<br><br>Change-Id: Ied02b38e8196cb03043e609a0679feebd288d17b<br>---<br>M main/config.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/config.c b/main/config.c<br>index 2684fc0..d0447fc 100644<br>--- a/main/config.c<br>+++ b/main/config.c<br>@@ -3568,7 +3568,7 @@<br> <br> for (i = 1; ; i++) {<br> if ((eng = find_engine(family, i, db, sizeof(db), table, sizeof(table)))) {<br>- if (eng->destroy_func && !(res = eng->destroy_func(db, table, keyfield, lookup, fields))) {<br>+ if (eng->destroy_func && ((res = eng->destroy_func(db, table, keyfield, lookup, fields)) >= 0)) {<br> break;<br> }<br> } else {<br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/9032">change 9032</a>. To unsubscribe, 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/9032"/><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: merged </div>
<div style="display:none"> Gerrit-Change-Id: Ied02b38e8196cb03043e609a0679feebd288d17b </div>
<div style="display:none"> Gerrit-Change-Number: 9032 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexei Gradinari <alex2grad@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Joshua Colp <jcolp@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>