uber-archive / statsrelay

A consistent-hashing relay for statsd and carbon metrics
Other
101 stars 28 forks source link

directly use the return value of statsrelay_list_expand #46

Open eklitzke opened 9 years ago

eklitzke commented 9 years ago

With 7f5333c7a0ff6df807e9abe9748908a6b42b4957 I fixed the bug whereby statsrelay_list_expand was returning the wrong address (note: the old code was valid because statsrelay_list_expand still returned NULL in the right cases, but the non-NULL case had the wrong offset). This change uses the return value of statsrelay_list_expand directly, rather than computing the offset, which is slightly more efficient.

JeremyGrosser commented 9 years ago

LGTM