<p>Alexei Gradinari has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.asterisk.org/9015">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">ast_destroy_realtime_fields: successful DELETE is treated as failed<br><br>The realtime destroy_func returns the number of rows deleted.<br>But the function ast_destroy_realtime_fields treats non zero return<br>value as error.<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;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/15/9015/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">diff --git a/main/config.c b/main/config.c<br>index da6d6f1..12f8739 100644<br>--- a/main/config.c<br>+++ b/main/config.c<br>@@ -3577,7 +3577,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/9015">change 9015</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/9015"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: Ied02b38e8196cb03043e609a0679feebd288d17b </div>
<div style="display:none"> Gerrit-Change-Number: 9015 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Alexei Gradinari <alex2grad@gmail.com> </div>