kocolosk commented on a change in pull request #1370: [5/5] Clustered Purge 
Implementation
URL: https://github.com/apache/couchdb/pull/1370#discussion_r194892820
 
 

 ##########
 File path: src/couch/src/couch_bt_engine.erl
 ##########
 @@ -707,6 +814,23 @@ init_state(FilePath, Fd, Header0, Options) ->
             {compression, Compression}
         ]),
 
+    PurgeTreeState = case couch_bt_engine_header:purge_tree_state(Header) of
+        0 -> nil;
+        PTS -> PTS
+    end,
 
 Review comment:
   Is this header upgrade logic? Should that be moved to `upgrade_purge_info/2` 
for clarity?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to