Fix badarg error in couch_server:try_close_lru/1 #74

Merged
merged 1 commit into from Oct 13, 2011

3 participants

@davisp
Cloudant member

The race condition in couch_server's ets table usage rears its ugly head
by leaving an entry in couch_lru. This patch just addresses the issue by
allowing the client pid to use the db and ignores the fact that for the
duration its over the max_dbs_open setting.

@davisp davisp Fix badarg error in couch_server:try_close_lru/1
The race condition in couch_server's ets table usage rears its ugly head
by leaving an entry in couch_lru. This patch just addresses the issue by
allowing the client pid to use the db and ignores the fact that for the
duration its over the max_dbs_open setting.
7c04f93
@kocolosk
Cloudant member

Great sleuthing @davisp. I followed your logic through to the badmatch error and it seems sound. The patch should address it.

@bdionne

lgtm +1

@kocolosk kocolosk merged commit 74c822e into master Oct 13, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment