(bugfix:major) Wrong update logic for has_next_/has_prev_ vars that caused last partition to be skipped.
(bugfix:major) Wrong update logic for has_next_/has_prev_ vars that
caused last partition to be skipped.

sguazt/dcsxx-commons,sguazt/dcsxx-commons