curl_json plugin: avoid cache aliasing by using all fields instead of the final two
authorJim Radford <radford@galvanix.com>
Fri, 16 Aug 2013 23:19:46 +0000 (16:19 -0700)
committerJim Radford <radford@galvanix.com>
Sat, 17 Aug 2013 02:52:35 +0000 (19:52 -0700)
commit31451e507c73a58255f7bd5feb703d013e1a622d
tree62a8ddf9276d37b06b4464615c340f788a738564
parent912afef242385f87fb9651ec0b54e4bf1561f73e
curl_json plugin: avoid cache aliasing by using all fields instead of the final two

The following two keys

  Key workers/*/requests
  Key workers/*/apps/*/requests

can both lead to type_instance's of say

  0-requests

which would alias in the cache.  If, instead of just the final two key
name components, we use all of them it would lead to these

  Key workers-0-requests
  Key workers-0-apps-0-requests

which would not overlap.
src/curl_json.c