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

lhotari pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/branch-3.0 by this push:
     new a01f26d0676 [fix] Restored method as deprecated in 
AbstractMetadataStore (#21950)
a01f26d0676 is described below

commit a01f26d06768914d0a5f0ed2981dbbca8b622e2a
Author: Matteo Merli <mme...@apache.org>
AuthorDate: Tue Jan 23 20:51:43 2024 -0800

    [fix] Restored method as deprecated in AbstractMetadataStore (#21950)
    
    Co-authored-by: Jiwe Guo <techno...@apache.org>
    (cherry picked from commit 4198ed2bb8c787d3bccf86a78bcdbdee353cade7)
---
 .../org/apache/pulsar/metadata/impl/AbstractMetadataStore.java    | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git 
a/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/AbstractMetadataStore.java
 
b/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/AbstractMetadataStore.java
index 8d7743dd791..dcd5bfde008 100644
--- 
a/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/AbstractMetadataStore.java
+++ 
b/pulsar-metadata/src/main/java/org/apache/pulsar/metadata/impl/AbstractMetadataStore.java
@@ -177,6 +177,14 @@ public abstract class AbstractMetadataStore implements 
MetadataStoreExtended, Co
         return result;
     }
 
+    /**
+     *  @deprecated Use {@link #registerSyncListener(Optional)} instead.
+     */
+    @Deprecated
+    protected void registerSyncLister(Optional<MetadataEventSynchronizer> 
synchronizer) {
+        this.registerSyncListener(synchronizer);
+    }
+
     protected void registerSyncListener(Optional<MetadataEventSynchronizer> 
synchronizer) {
         synchronizer.ifPresent(s -> 
s.registerSyncListener(this::handleMetadataEvent));
     }

Reply via email to