Skip to content

Commit

Permalink
Fix label copy: allow new key with different value
Browse files Browse the repository at this point in the history
  • Loading branch information
stelfrag authored and tkatsoulas committed Oct 30, 2023
1 parent 60cd86d commit 6179213
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions database/rrdlabels.c
Expand Up @@ -1040,8 +1040,6 @@ void rrdlabels_copy(RRDLABELS *dst, RRDLABELS *src)
lfe_start_nolock(src, label, ls)
{
RRDLABEL *old_label_with_key = rrdlabels_find_label_with_key_unsafe(dst, label);
if (old_label_with_key)
continue;

Pvoid_t *PValue = JudyLIns(&dst->JudyL, (Word_t)label, PJE0);
if(unlikely(!PValue || PValue == PJERR))
Expand Down

0 comments on commit 6179213

Please sign in to comment.