Details
Description
long total = 0; for (ReadOnlyKeyValueStore<K, V> store : stores) { total += store.approximateNumEntries(); } return total < 0 ? Long.MAX_VALUE : total;
The check for negative value seems to account for wrapping.
However, wrapping can happen within the for loop. So the check should be performed inside the loop.
Attachments
Issue Links
- links to