Skip to content

Commit

Permalink
CBQE-547 fix the bug in verification. Update the hash method
Browse files Browse the repository at this point in the history
Change-Id: I08c569b1e29912b562a0f29503353aea7d6099ea
Reviewed-on: http://review.couchbase.org/20844
Reviewed-by: Chisheng Hong <chisheng@couchbase.com>
Tested-by: Chisheng Hong <chisheng@couchbase.com>
  • Loading branch information
Chisheng Hong committed Sep 14, 2012
1 parent 78bf448 commit a6e43bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytests/backup/backup_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ def verify_single_node(self, server, kv_store=1):
memcacheds, vBucketMap, vBucketMapReplica = VBucketAware.request_map(rest, bucket.name)
valid_keys, deleted_keys = bucket.kvs[kv_store].key_set()
for key in valid_keys:
vBucketId = crc32.crc32_hash(key) & (len(vBucketMap) - 1)
vBucketId = VBucketAware._get_vBucket_id(key)
which_server = vBucketMap[vBucketId]
sub = which_server.find(":")
which_server_ip = which_server[:sub]
Expand Down

0 comments on commit a6e43bb

Please sign in to comment.