mirror of
https://github.com/OpenHFT/Chronicle-Map.git
synced 2021-09-13 01:26:12 +00:00
Fixed possible int overflow when storing segmentHeaderOffset, closes https://github.com/ChronicleEnterprise/Chronicle-Map-Enterprise/issues/46
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package net.openhft.chronicle.map;
|
||||
|
||||
import net.openhft.chronicle.values.Group;
|
||||
import net.openhft.chronicle.values.Range;
|
||||
import net.openhft.chronicle.values.Values;
|
||||
|
||||
/**
|
||||
* Extends segment headers offset from int to long - it may be greater than 4GB for large data stores.
|
||||
*/
|
||||
public interface ReplicatedGlobalMutableStateV2 extends ReplicatedGlobalMutableState {
|
||||
static void main(String[] args) {
|
||||
System.setProperty("chronicle.values.dumpCode", "true");
|
||||
Values.nativeClassFor(ReplicatedGlobalMutableStateV2.class);
|
||||
}
|
||||
|
||||
@Group(9)
|
||||
long getSegmentHeadersOffset();
|
||||
|
||||
void setSegmentHeadersOffset(@Range(min = 0/*, max = 9223372036854775807L*/) long segmentHeadersOffset);
|
||||
}
|
||||
Reference in New Issue
Block a user