nickva opened a new pull request #2133: Fix DB reopen behavior
URL: https://github.com/apache/couchdb/pull/2133
 
 
   Previously if a VDU was updated in the `before_doc_update/3` handlers, the Db
   handle wasn't refreshed soon enough such that the `prepare_and_validate/3`
   would not see the newly update VDU and would not run it.
   
   To fix make a stale Db throws an exception which bubbles up all the way to
   `fabric2_fdb:transactional/2` where the transaction is retried again with a
   reopened Db.
   
   During `reopen/1` make sure to properly transfer the `user_ctx` property to 
the
   new handle, and also make sure `user_ctx` is removed from `db_options` to 
avoid
   caching it in `fabric2_server`.
   
   

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

Reply via email to