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

 ##########
 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:
   Yes, it is for header upgrade. The test case is 
`t_upgrade_without_purge_req`. Good suggestion, I moved logic to 
`upgrade_purge_info/2`.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to