You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cs...@apache.org on 2023/06/29 11:55:19 UTC
[sling-org-apache-sling-distribution-journal] 05/06: SLING-11914 - Log initial offset
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 <cs...@adobe.com>
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();
}