Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clone does not correctly overwrite tags #18

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

suhailpatel
Copy link

When doing a Clone operation and overwriting a tag, the tag is not correctly overwritten.

This is because we are doing a range over the client tags and overwriting a copy of the Tag struct when you do range rather than the original value

@@ -317,14 +317,14 @@ func TestCloneRate(t *testing.T) {
}

func TestCloneInfluxDBTags(t *testing.T) {
testOutput(t, "test_key,tag1=value1,tag2=value2:5|c", func(c *Client) {
testOutput(t, "test_key,tag1=value3,tag2=value2:5|c", func(c *Client) {
Copy link
Author

Choose a reason for hiding this comment

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

The value3 should overwrite value1 in the Clone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant