This is an automated email from the ASF dual-hosted git repository.

yong pushed a commit to branch branch-4.15
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git

commit acfa520ec0dfcf076d21e9a2dd7e6cd7b7614d7f
Author: zymap <[email protected]>
AuthorDate: Tue Feb 21 09:51:27 2023 +0800

    Revert "recycle LongPairWrapper (#3728)"
    
    This reverts commit f92171f10962531103094a84b65da2e57b137475.
---
 .../bookkeeper/bookie/storage/ldb/LocationsIndexRebuildOp.java    | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git 
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/LocationsIndexRebuildOp.java
 
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/LocationsIndexRebuildOp.java
index 3e84a92438..e15457ca8e 100644
--- 
a/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/LocationsIndexRebuildOp.java
+++ 
b/bookkeeper-server/src/main/java/org/apache/bookkeeper/bookie/storage/ldb/LocationsIndexRebuildOp.java
@@ -105,13 +105,7 @@ public class LocationsIndexRebuildOp {
                     // Update the ledger index page
                     LongPairWrapper key = LongPairWrapper.get(ledgerId, 
entryId);
                     LongWrapper value = LongWrapper.get(location);
-
-                    try {
-                        batch.get().put(key.array, value.array);
-                    } finally {
-                        key.recycle();
-                        value.recycle();
-                    }
+                    batch.get().put(key.array, value.array);
 
                     if (count.incrementAndGet() > BATCH_COMMIT_SIZE) {
                         batch.get().flush();

Reply via email to