MB-30758: The mod operation must be run on an integer
MB-30758: The mod operation must be run on an integer

A previous change changed the key to a string which caused this
regression. Since the key is guarenteed to be an integer we can
just cast it back to an int before moding it.

Change-Id: I2a857a16999df990ec0a97872d888dda512d478c
Reviewed-on: http://review.couchbase.org/98028
Reviewed-by: Mike Wiederhold <a17fed27eaa842282862ff7c1b9c8395a26ac320@couchbase.com>
Tested-by: Mike Wiederhold <a17fed27eaa842282862ff7c1b9c8395a26ac320@couchbase.com>

couchbase/couchbase-cli,couchbase/couchbase-cli