Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Fix memory idx deletes #554

Merged
merged 1 commit into from
Feb 27, 2017
Merged

Fix memory idx deletes #554

merged 1 commit into from
Feb 27, 2017

Conversation

woodsaj
Copy link
Member

@woodsaj woodsaj commented Feb 27, 2017

fixes #552

Copy link
Contributor

@Dieterbe Dieterbe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM just 1 comment

series := []*schema.MetricData{
{
Name: fmt.Sprintf("a.b.c"),
Metric: fmt.Sprintf("a.b.c"),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

static names -> no need for the Sprintf calls

- fixes #552
- the index delete code was still assuming that nodes could
  only be branches or leafs and not both.
- add unit tests to verify correct behaviour
@Dieterbe Dieterbe merged commit 322e871 into master Feb 27, 2017
@woodsaj woodsaj deleted the fixMemoryIdxDeletes branch February 27, 2017 13:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[memory.go:507 delete()] [E] memory-idx: node <metric> missing. Index is corrupt.
2 participants