From d460886eb16fddb23780e54f28fb26b3eb9dd191 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Tue, 30 Mar 2010 04:56:24 +0000 Subject: [PATCH] HBASE-2389 HTable - delete / put unnecessary sync git-svn-id: https://svn.apache.org/repos/asf/hadoop/hbase/trunk@928986 13f79535-47bb-0310-9956-ffa450edef68 --- CHANGES.txt | 1 + .../main/java/org/apache/hadoop/hbase/client/HTable.java | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGES.txt b/CHANGES.txt index 70edb4926b2..45c6b8324ad 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -462,6 +462,7 @@ Release 0.21.0 - Unreleased (Kannan Muthukkaruppan via Stack) HBASE-2348 [stargate] Stargate needs both JAR and WAR artifacts (Paul Smith via Andrew Purtell) + HBASE-2389 HTable - delete / put unnecessary sync (Kay Kay via Stack) NEW FEATURES HBASE-1961 HBase EC2 scripts diff --git a/core/src/main/java/org/apache/hadoop/hbase/client/HTable.java b/core/src/main/java/org/apache/hadoop/hbase/client/HTable.java index 2d0edc1a470..843ce569870 100644 --- a/core/src/main/java/org/apache/hadoop/hbase/client/HTable.java +++ b/core/src/main/java/org/apache/hadoop/hbase/client/HTable.java @@ -469,7 +469,7 @@ public class HTable implements HTableInterface { * @throws IOException * @since 0.20.1 */ - public synchronized void delete(final List deletes) + public void delete(final List deletes) throws IOException { int last = 0; try { @@ -487,7 +487,7 @@ public class HTable implements HTableInterface { * @throws IOException * @since 0.20.0 */ - public synchronized void put(final Put put) throws IOException { + public void put(final Put put) throws IOException { doPut(Arrays.asList(put)); } @@ -499,7 +499,7 @@ public class HTable implements HTableInterface { * @throws IOException if a remote or network exception occurs * @since 0.20.0 */ - public synchronized void put(final List puts) throws IOException { + public void put(final List puts) throws IOException { doPut(puts); } @@ -583,7 +583,7 @@ public class HTable implements HTableInterface { * @throws IOException * @return true if the new put was execute, false otherwise */ - public synchronized boolean checkAndPut(final byte [] row, + public boolean checkAndPut(final byte [] row, final byte [] family, final byte [] qualifier, final byte [] value, final Put put) throws IOException {