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

memoryIdx.UpdateArchive leads to pointers in m.defById and m.defByTagSet getting out of sync #1356

Closed
woodsaj opened this issue Jun 20, 2019 · 1 comment
Labels

Comments

@woodsaj
Copy link
Member

woodsaj commented Jun 20, 2019

memoryIdx.Add() has a comment explaining that the pointers in defById and defByTagSet need to be the same for the same metricDefinition.

// Even if there are no tags, index at least "name". It's important to use the definition
// in the archive pointer that we add to defById, because the pointers must reference the
// same underlying object in m.defById and m.defByTagSet

see: #1303

However, memoryIdx.UpdateArchive() updates what m.defById points to without also updating m.defByTagSet

@woodsaj woodsaj added the bug label Jun 20, 2019
@woodsaj
Copy link
Member Author

woodsaj commented Jun 27, 2019

this was fixed in #1365

@woodsaj woodsaj closed this as completed Jun 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant