Skip to content

Commit 74c6d98

Browse files
committed
enable get connection num in odp mode
1 parent 42dedc6 commit 74c6d98

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/alipay/oceanbase/rpc/location/model/TableRoute.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ public long getLastRefreshMetadataTimestamp() {
152152

153153
@VisibleForTesting
154154
public ObTable getFirstObTable() {
155+
if (tableClient.isOdpMode()) {
156+
return odpInfo.getObTable();
157+
}
155158
return tableRoster.getTables().entrySet().iterator().next().getValue();
156159
}
157160

0 commit comments

Comments
 (0)