Avoid a race condition for monitored compaction.
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: c1f8a8ec0b3bb2e99ab3413722f81f687760e79c@1172378 13f79535-47bb-0310-9956-ffa450edef68

KlausTrainer/couchdb-couch,fkaempfer/couchdb,cloudant/couchdb-couch,ngpestelos/couchdb-couch,smithsz/couchdb-couch,cloudant/couchdb-couch,smithsz/couchdb-couch,KlausTrainer/couchdb-couch,fkaempfer/couchdb,apache/couchdb-couch,alanning/couchdb-couch,fkaempfer/couchdb,apache/couchdb-couch,cloudant/couchdb-couch,alanning/couchdb-couch,alanning/couchdb-couch,smithsz/couchdb-couch,fkaempfer/couchdb,KlausTrainer/couchdb-couch,ngpestelos/couchdb-couch,apache/couchdb-couch,fkaempfer/couchdb,fkaempfer/couchdb,ngpestelos/couchdb-couch