Originally reported at: * https://github.com/pouchdb/pouchdb/issues/8925 * https://github.com/pouchdb/pouchdb-server/issues/476 This may be caused by a race condition when caching of `total_rows` during concurrent calls to `db.remove()`.