thomasmueller commented on a change in pull request #514:
URL: https://github.com/apache/jackrabbit-oak/pull/514#discussion_r828188192



##########
File path: 
oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/index/importer/IndexImporter.java
##########
@@ -290,8 +296,14 @@ static String getAsyncLaneName(String indexPath, NodeState 
indexState) {
     }
 
     private void releaseCheckpoint() {
-        nodeStore.release(indexerInfo.checkpoint);
-        log.info("Released the referred checkpoint [{}]", 
indexerInfo.checkpoint);
+        if (!preserveCheckpoint) {

Review comment:
       Nit: I would use "if (preserveCheckpoint)" and then swap the "then" and 
"else" parts.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to