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

cschneider pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-journal.git

commit 72c7a05cb16ca1d61d9be4d2acd85e88c9eef9c2
Author: Christian Schneider <[email protected]>
AuthorDate: Thu Jun 29 09:27:10 2023 +0200

    SLING-11914 - Log initial offset
---
 .../org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java     | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/src/main/java/org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java
 
b/src/main/java/org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java
index 76d7b30..92ae9fd 100644
--- 
a/src/main/java/org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java
+++ 
b/src/main/java/org/apache/sling/distribution/journal/bookkeeper/BookKeeper.java
@@ -383,6 +383,7 @@ public class BookKeeper {
         try (ResourceResolver resolver = 
getServiceResolver(SUBSERVICE_BOOKKEEPER)) {
             long currentOffset = loadOffset();
             if (currentOffset == -1) {
+                log.info("Storing initial offset. key={}, offset={}", 
KEY_OFFSET, offset);
                 storeOffset(resolver, offset);
                 resolver.commit();
             }

Reply via email to