rnewson commented on issue #4994:
URL: https://github.com/apache/couchdb/issues/4994#issuecomment-2260369446

   jan's theory makes sense to me. the 2.x -> 3.x upgrade code is flawed, it 
only tries the 2.0 sig if the file was found in the old location, and assumes 
we'll write a new header for all views on upgrade (any couchdb crash or restart 
would cause things to go wrong)
   
   suggest a different approach at 
https://github.com/apache/couchdb/blob/3.3.3/src/couch_mrview/src/couch_mrview_index.erl#L121
 or so, we can try to match the v2 sig if the v3 sig fails. that is, decouple 
the moving of the file from old to new location from whether the file itself is 
v2 vs v3.


-- 
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