This is an automated email from the ASF dual-hosted git repository.

stack pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/master by this push:
     new 6ea2566  [HBASE-22525] : Return procedures to use bulk operation over 
iteration for Perf Improvement (#284)
6ea2566 is described below

commit 6ea2566ac3f1d1cb76cedf87f00cda6583013b2f
Author: virajjasani <[email protected]>
AuthorDate: Fri Jun 7 04:07:44 2019 +0530

    [HBASE-22525] : Return procedures to use bulk operation over iteration for 
Perf Improvement (#284)
---
 .../org/apache/hadoop/hbase/procedure/ProcedureManagerHost.java     | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/procedure/ProcedureManagerHost.java
 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/procedure/ProcedureManagerHost.java
index 9ebb1d7..16e669d 100644
--- 
a/hbase-server/src/main/java/org/apache/hadoop/hbase/procedure/ProcedureManagerHost.java
+++ 
b/hbase-server/src/main/java/org/apache/hadoop/hbase/procedure/ProcedureManagerHost.java
@@ -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);

Reply via email to