Skip to content

Commit

Permalink
XWIKI-21922: Introduce methods to fetch a subset of revisions in XWik…
Browse files Browse the repository at this point in the history
…iVersioningStoreInterface

* Improve comments
  • Loading branch information
pjeanjean committed Mar 15, 2024
1 parent 29c82b0 commit 02818d6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ private void applyCriteria(final long id, RevisionCriteria criteria)
if (minDate.getTime() < 0) {
minDate = new Date(0);
}
// Most databases store timestamps as seconds, using integers.
// Most databases (e.g., MariaDB) store timestamps as seconds, using integers. As such we cannot go
// higher than Integer.MAX_VALUE seconds.
if (maxDate.getTime() > Integer.MAX_VALUE * 1000L) {
maxDate = new Date(Integer.MAX_VALUE * 1000L);
}
Expand Down

0 comments on commit 02818d6

Please sign in to comment.