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 d2c19416a2
commit ee562faeb3
1 changed files with 3 additions and 1 deletions

View File

@ -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]);
}
} }
/** /**