See this commit: http://review.couchbase.org/#/c/39761/ and http://www.couchbase.com/issues/browse/NCBC-558