Skip to content

Commit

Permalink
Merge pull request apache#846 from vikramakrishnan/cacheKeyFix
Browse files Browse the repository at this point in the history
Include origin when creating the cacheKey for period Grans
  • Loading branch information
fjy committed Nov 12, 2014
2 parents 7ef1900 + 8151d14 commit 4b4f1c7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ private long truncateMillisPeriod(final long t)
@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
Expand Down

0 comments on commit 4b4f1c7

Please sign in to comment.