mirror of https://github.com/apache/cassandra
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:
parent
9e60611fb8
commit
80d46b8acc
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue