]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: clear old zone short ids on period update 13949/head
authorCasey Bodley <cbodley@redhat.com>
Thu, 9 Mar 2017 20:24:08 +0000 (15:24 -0500)
committerCasey Bodley <cbodley@redhat.com>
Mon, 13 Mar 2017 19:51:12 +0000 (15:51 -0400)
commit9c45633c836c966ab1f75ea2b1ad3fa0a4886600
treed26f69f7915713dbf75bb1593fdb8c9ef86a9564
parentb1a2f9fbc979f1c19ee4e63bcd4e4bbb8b72fe31
rgw: clear old zone short ids on period update

the short ids of old, removed zones were being kept in the period to
guard against hash collisions with new zones

but for a hash collision to cause a wrong object to sync, that object
would have to be uploaded simultaneously to two different zones that had
the same short id

to avoid this, we just have to prevent the period from containing two
colliding zones at the same time - we don't have to remember old zone
short ids forever

Fixes: http://tracker.ceph.com/issues/15618
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_rados.cc