rnewson commented on a change in pull request #2438: Reset a view shard if the
signature is wrong
URL: https://github.com/apache/couchdb/pull/2438#discussion_r365322433
##########
File path: src/couch_mrview/src/couch_mrview_index.erl
##########
@@ -127,6 +127,12 @@ open(Db, State0) ->
NewSt = couch_mrview_util:init_state(Db, Fd, State,
Header),
ensure_local_purge_doc(Db, NewSt),
{ok, NewSt};
+ {ok, {WrongSig, _}} ->
Review comment:
I'm tempted to generalize further to `{ok, WeirdHeader}` or somesuch.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services