HBASE-13578 Remove Arrays.asList().subList() from FSHLog.offer()
This commit is contained in:
parent
d2c19416a2
commit
ee562faeb3
|
@ -1248,7 +1248,9 @@ public class FSHLog implements WAL {
|
||||||
void offer(final long sequence, final SyncFuture [] syncFutures, final int syncFutureCount) {
|
void offer(final long sequence, final SyncFuture [] syncFutures, final int syncFutureCount) {
|
||||||
// Set sequence first because the add to the queue will wake the thread if sleeping.
|
// Set sequence first because the add to the queue will wake the thread if sleeping.
|
||||||
this.sequence = sequence;
|
this.sequence = sequence;
|
||||||
this.syncFutures.addAll(Arrays.asList(syncFutures).subList(0, syncFutureCount));
|
for (int i = 0; i < syncFutureCount; ++i) {
|
||||||
|
this.syncFutures.add(syncFutures[i]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue