This is an automated email from the ASF dual-hosted git repository.
duong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 13a4f81353 HDDS-8289: Speed up FSO ListKeys, skip skipToFirst (#4650)
13a4f81353 is described below
commit 13a4f813536efc7ede76a89b2d66c267da9b79d4
Author: Ritesh H Shukla <[email protected]>
AuthorDate: Mon May 8 17:01:55 2023 -0700
HDDS-8289: Speed up FSO ListKeys, skip skipToFirst (#4650)
---
.../main/java/org/apache/hadoop/ozone/om/OzoneListStatusHelper.java | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git
a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneListStatusHelper.java
b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneListStatusHelper.java
index bb708b1923..06cda4667b 100644
---
a/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneListStatusHelper.java
+++
b/hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/OzoneListStatusHelper.java
@@ -340,14 +340,10 @@ public class OzoneListStatusHelper {
String prefixKey, String startKey) throws IOException {
this.iterType = iterType;
this.table = table;
- this.tableIterator = table.iterator();
+ this.tableIterator = table.iterator(prefixKey);
this.prefixKey = prefixKey;
this.currentKey = null;
- if (!StringUtils.isBlank(prefixKey)) {
- tableIterator.seek(prefixKey);
- }
-
// only seek for the start key if the start key is lexicographically
// after the prefix key. For example
// Prefix key = 1024/c, Start key = 1024/a
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]