nickva commented on pull request #2952: URL: https://github.com/apache/couchdb/pull/2952#issuecomment-645547070
Previously, when the md version was stale we should have only revalidated each db_version (a single key read) to check that particular db hasn't changed. And if it hasn't, we would re-insert it into the cache with the new md version. https://github.com/apache/couchdb/blob/prototype/fdb-layer/src/fabric/src/fabric2_fdb.erl#L1873-L1879 All the subsequent requests should then get an updated db handle with the new md version, which they'll see as current and not do the extra db version key read. But we shouldn't have fully reopened the db if a particular db's version hasn't changed. ---------------------------------------------------------------- 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]
