<p> Attention is currently required from: N A. </p>
<p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4; color: #000000;">Code-Review -1</span></p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/18785">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="null">File main/db.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/asterisk/+/18785/comment/4d65c66b_ceae4966">Patch Set #1, Line 993:</a> <code style="font-family:monospace,monospace">static int manager_db_prefix_get(struct mansession *s, const struct message *m)</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">This appears to be very similar to the cli database_show command. I wonder, tweaking this here a bit would bring it more in alignment with that, e.g. renaming maybe to DbGetTree, and accepting a family and optional keytree.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Might could then even just call the ast_db_gettree then loop over the result, although that would interject a second loop.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.asterisk.org/c/asterisk/+/18785/comment/83431e7b_48d19b4e">Patch Set #1, Line 1001:</a> <code style="font-family:monospace,monospace"> if (ast_strlen_zero(dbprefix)) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">The CLI database_show command sets the stmt to gettree_all_stmt if prefix is empty. Probably want to do the same here?</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/18785">change 18785</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/c/asterisk/+/18785"/><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-Change-Id: I3be9425e53be71f24303fdd4d2923c14e84337e6 </div>
<div style="display:none"> Gerrit-Change-Number: 18785 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-Reviewer: Friendly Automation </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Attention: N A <mail@interlinked.x10host.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 12 Jul 2022 17:26:24 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>