Description of problem:
The incorrect calculation can provoke unecessary IO during LuceneCacheLoader usage
Version-Release number of selected component (if applicable):
Steps to Reproduce:
PR for jdg 6.3.x: https://github.com/infinispan/jdg/pull/217
PR for jdg 6.4.x: https://github.com/infinispan/jdg/pull/218
*** Bug 1135608 has been marked as a duplicate of this bug. ***
Integrated in both 6.3.x and 6.4.x.