commit | 3e2d21afc26b7bd9bdb625eba31d6a51bd6d309d | [log] [tgz] |
---|---|---|
author | Paul Joseph Davis <davisp@apache.org> | Sun Sep 18 21:52:09 2011 +0000 |
committer | Paul Joseph Davis <davisp@apache.org> | Sun Sep 18 21:52:09 2011 +0000 |
tree | 226e40457a0e0dd6c4a79a7557cdbd6c0485a6d3 | |
parent | 2cc4da18044a8044604556975c02e67c54080417 [diff] |
Avoid a race condition for monitored compaction. It was technically possible for compaction to finish before a monitor was requested. This fixes that by giving couch_index:compact a third options parameter that accepts the atom 'monitor' which will then return {ok, MonRef} instead of a bare ok. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1172378 13f79535-47bb-0310-9956-ffa450edef68