tanvipenumudy commented on code in PR #5115:
URL: https://github.com/apache/ozone/pull/5115#discussion_r1277322664
##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/protocolPB/OzoneManagerProtocolClientSideTranslatorPB.java:
##########
@@ -1004,6 +1006,46 @@ public List<OmKeyInfo> listKeys(String volumeName,
String bucketName,
}
+ /**
+ * Lightweight listKeys implementation.
+ */
+ @Override
+ public List<BasicOmKeyInfo> listKeysLight(String volumeName,
+ String bucketName, String startKey, String prefix,
+ int maxKeys) throws IOException {
+ List<BasicOmKeyInfo> keys = new ArrayList<>();
+ ListKeysRequest.Builder reqBuilder = ListKeysRequest.newBuilder();
+ reqBuilder.setVolumeName(volumeName);
+ reqBuilder.setBucketName(bucketName);
+ reqBuilder.setCount(maxKeys);
+
+ if (startKey != null) {
Review Comment:
Yes, thank you, I have added the empty check here.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]