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;
|
||||
if (currIndex == null) { // Only happens on initialization, cannot synchronize on null
|
||||
old = currIndex;
|
||||
currIndex = new FireHydrant(newIndex, hydrants.size(), version);
|
||||
currIndex = new FireHydrant(newIndex, hydrants.size(), getSegment().getIdentifier());
|
||||
hydrants.add(currIndex);
|
||||
} else {
|
||||
synchronized (currIndex) {
|
||||
old = currIndex;
|
||||
currIndex = new FireHydrant(newIndex, hydrants.size(), version);
|
||||
currIndex = new FireHydrant(newIndex, hydrants.size(), getSegment().getIdentifier());
|
||||
hydrants.add(currIndex);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue