Unset HAS_MORE_PAGES flag if PagingState is null

patch by Berenguer Blasi and Sam Tunnicliffe; reviewed by Aleksey
Yeschenko for CASSANDRA-7787
This commit is contained in:
Berenguer Blasi 2015-06-09 18:21:14 +01:00 committed by Sam Tunnicliffe
parent 9e60611fb8
commit 80d46b8acc
2 changed files with 5 additions and 4 deletions

View File

@ -1,4 +1,5 @@
2.0.16:
* Set HAS_MORE_PAGES flag to false when PagingState is null (CASSANDRA-9571)
* Backport indexed value validation fix from CASSANDRA-9057 (CASSANDRA-9564)
* Don't accumulate more range than necessary in RangeTombstone.Tracker (CASSANDRA-9486)
* Add broadcast and rpc addresses to system.local (CASSANDRA-9436)

View File

@ -283,11 +283,11 @@ public class ResultSet
public Metadata setHasMorePages(PagingState pagingState)
{
if (pagingState == null)
return this;
flags.add(Flag.HAS_MORE_PAGES);
this.pagingState = pagingState;
if (pagingState == null)
flags.remove(Flag.HAS_MORE_PAGES);
else
flags.add(Flag.HAS_MORE_PAGES);
return this;
}