Couchbase Server

Bad index state transition, regression added by MB-7522 (was: Queries fail with error {"error":"error","reason":"inconsistent_state"} during rebalance out)