<p><a href="https://gerrit.osmocom.org/c/libosmocore/+/23508">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/23508/1/src/stat_item.c">File src/stat_item.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.osmocom.org/c/libosmocore/+/23508/1/src/stat_item.c@279">Patch Set #1, Line 279:</a> <code style="font-family:monospace,monospace">     LOGP(DLSTATS, LOGL_DEBUG, "osmo_stat_item_discard_all is deprecated");</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">INFO?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmocore/+/23508/1/src/stat_item.c@280">Patch Set #1, Line 280:</a> <code style="font-family:monospace,monospace">      return 0;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">You may want to call osmo_stats_discard_all() internally here?</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">It doesn't call osmo_stats_discard_all() here, because osmo_stats_discard_all() uses item->stats_next_id. If there is code outside of libosmocore that uses the stat_item API directly (without stats API), it must store its own item-specific next_id outside of osmo_stat_item (see commit message).</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/libosmocore/+/23508/1/src/stats.c">File src/stats.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.osmocom.org/c/libosmocore/+/23508/1/src/stats.c@715">Patch Set #1, Line 715:</a> <code style="font-family:monospace,monospace">    if (!have_value) {</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">You can drop have_value (which is not an int anymore btw): […]</blockquote></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">have_value is also used further below, so it can't be dropped.<br>  if (!have_value && !srep->force_single_flush)</pre><p style="white-space: pre-wrap; word-wrap: break-word;">You are right with "is not an int". Since this is unrelated to this patch: https://gerrit.osmocom.org/c/libosmocore/+/23651</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmocore/+/23508">change 23508</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.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.osmocom.org/c/libosmocore/+/23508"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmocore </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ie65dcdf52c8fc3d916e20d7f0455f6223be6b64f </div>
<div style="display:none"> Gerrit-Change-Number: 23508 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 06 Apr 2021 10:01:27 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>