Just ran into an issue with our graphing of the query-cache:
Looking at the code, the SHOW * command works because you just deref the pointer which is defined as an unsigned int. However the SHOW code doesn't work because it uses StatBag::read() which is defined as returning a signed int. I believe the attached patch will fix the issues but there may still be some other places in the StatBag code where it would be better to explicitly specify unsigned int.
Perhaps in the future the counter should be given with a typedef to prevent this from occuring again and specified as a long to ensure that we can get the full 64 bits on a 64-bit arch? (I believe an int on x86_64 arch is still only 32 bit)
Attachment '' (pdns-fix-unsigned-signed-issues.patch) https://gist.github.com/5466695
Fixed slightly differently in commit 2019, thanks!