fix wrong function argument

Change-Id: Ib04991d4ac406dac0dd1d1cd8181b42e6b3484e2
Reviewed-on: http://review.couchbase.org/27194
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>