Merge pull request #846 from vikramakrishnan/cacheKeyFix

Include origin when creating the cacheKey for period Grans
This commit is contained in:
Fangjin Yang 2014-11-12 11:15:21 -07:00
commit 4b4f1c7d38
1 changed files with 1 additions and 1 deletions

View File

@ -326,7 +326,7 @@ public class PeriodGranularity extends BaseQueryGranularity
@Override
public byte[] cacheKey()
{
return (period.toString() + ":" + chronology.getZone().toString()).getBytes(Charsets.UTF_8);
return (period.toString() + ":" + chronology.getZone().toString() + ":" + origin).getBytes(Charsets.UTF_8);
}
@Override