[HBASE-22525] : Return procedures to use bulk operation over iteration for Perf Improvement (#284)

This commit is contained in:
virajjasani 2019-06-07 04:07:44 +05:30 committed by Michael Stack
parent 4d4f4ee4d1
commit 6ea2566ac3
1 changed files with 1 additions and 5 deletions

View File

@ -103,11 +103,7 @@ public abstract class ProcedureManagerHost<E extends ProcedureManager> {
}
public Set<E> getProcedureManagers() {
Set<E> returnValue = new HashSet<>();
for (E e: procedures) {
returnValue.add(e);
}
return returnValue;
return new HashSet<>(procedures);
}
public abstract void loadProcedures(Configuration conf);