MB-8295: change according to couchdb refactoring

This commit needs to get merged at the same time as:
http://review.couchbase.org/26386

Change-Id: I8d279f07a0de93bf0dd8eec7c8646c15b4a3d70f
Reviewed-on: http://review.couchbase.org/26384
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>