MB-8602: Cleanup function parameter

There's no need to pass on the full record if only
the database/bucket name is needed.

Change-Id: Ib4aac00cc4761a7ea3905f97851d06b00b3df6dd
Reviewed-on: http://review.couchbase.org/27419
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>