From 5ab7eaf8b1bcdd7606f46e538c2432f6b6ef5079 Mon Sep 17 00:00:00 2001 From: JiaShuo Date: Wed, 27 Jan 2021 10:15:29 +0800 Subject: [PATCH] update --- src/main/java/com/xiaomi/infra/pegasus/client/PegasusTable.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/xiaomi/infra/pegasus/client/PegasusTable.java b/src/main/java/com/xiaomi/infra/pegasus/client/PegasusTable.java index 8a022253..652a157a 100644 --- a/src/main/java/com/xiaomi/infra/pegasus/client/PegasusTable.java +++ b/src/main/java/com/xiaomi/infra/pegasus/client/PegasusTable.java @@ -1066,6 +1066,7 @@ public MultiGetResult multiGet( int maxFetchSize, int timeout /*ms*/) throws PException { + if (timeout <= 0) timeout = defaultTimeout; try { return asyncMultiGet( hashKey, startSortKey, stopSortKey, options, maxFetchCount, maxFetchSize, timeout)