mirror of https://github.com/apache/druid.git
fix segment id for ii
This commit is contained in:
parent
b78919c729
commit
6f079bcc8f
|
@ -178,12 +178,12 @@ public class Sink implements Iterable<FireHydrant>
|
||||||
FireHydrant old;
|
FireHydrant old;
|
||||||
if (currIndex == null) { // Only happens on initialization, cannot synchronize on null
|
if (currIndex == null) { // Only happens on initialization, cannot synchronize on null
|
||||||
old = currIndex;
|
old = currIndex;
|
||||||
currIndex = new FireHydrant(newIndex, hydrants.size(), version);
|
currIndex = new FireHydrant(newIndex, hydrants.size(), getSegment().getIdentifier());
|
||||||
hydrants.add(currIndex);
|
hydrants.add(currIndex);
|
||||||
} else {
|
} else {
|
||||||
synchronized (currIndex) {
|
synchronized (currIndex) {
|
||||||
old = currIndex;
|
old = currIndex;
|
||||||
currIndex = new FireHydrant(newIndex, hydrants.size(), version);
|
currIndex = new FireHydrant(newIndex, hydrants.size(), getSegment().getIdentifier());
|
||||||
hydrants.add(currIndex);
|
hydrants.add(currIndex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue