HBASE-13578 Remove Arrays.asList().subList() from FSHLog.offer()

This commit is contained in:
Matteo Bertozzi 2015-04-28 20:43:08 +01:00
parent d9bf56ab3a
commit 3a9304e98f
1 changed files with 3 additions and 1 deletions

View File

@ -1249,7 +1249,9 @@ public class FSHLog implements WAL {
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.
this.sequence = sequence;
this.syncFutures.addAll(Arrays.asList(syncFutures).subList(0, syncFutureCount));
for (int i = 0; i < syncFutureCount; ++i) {
this.syncFutures.add(syncFutures[i]);
}
}
/**