Skip to content

Commit

Permalink
Only read data for fate lock from zookeeper when its used (#5180)
Browse files Browse the repository at this point in the history
  • Loading branch information
keith-turner authored Dec 14, 2024
1 parent d53c1c6 commit 78cbdbe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ public SortedMap<Long,byte[]> getEarlierEntries(long entry) {
for (String name : children) {
// this try catch must be done inside the loop because some subset of the children may exist
try {
byte[] data = zoo.getData(path + "/" + name);
long order = Long.parseLong(name.substring(PREFIX.length()));
if (order <= entry) {
byte[] data = zoo.getData(path + "/" + name);
result.put(order, data);
}
} catch (KeeperException.NoNodeException ex) {
Expand Down

0 comments on commit 78cbdbe

Please sign in to comment.