Skip to content

Commit 6d136f8

Browse files
committed
pacth exist bugfix to master
1 parent f12afe0 commit 6d136f8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/java/com/alipay/oceanbase/hbase/OHTable.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,9 @@ public HTableDescriptor getTableDescriptor() {
450450
*/
451451
@Override
452452
public boolean exists(Get get) throws IOException {
453-
get.setCheckExistenceOnly(true);
454-
return this.get(get).getExists();
453+
Get newGet = new Get(get);
454+
newGet.setCheckExistenceOnly(true);
455+
return this.get(newGet).getExists();
455456
}
456457

457458
@Override

0 commit comments

Comments
 (0)