]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw-multisite: metadata conflict not computed correctly 42532/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 28 Jul 2021 18:07:09 +0000 (14:07 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Sun, 22 Aug 2021 20:05:03 +0000 (16:05 -0400)
commit04691a82c91b7719890e846a9b8cbb98db98af05
tree2f7a8ad220deff4cef32f81e18215cff051f86d2
parent8aaa6b0fef0256e42fe006a18b61f7f74db7106c
rgw-multisite: metadata conflict not computed correctly

The former logic with a conditional based on `++i == 0` would never
execute. So this uses a boolean to differentiate the first from other
iterations and tries to clarify the code through commenting and an
explicit declaration. Additionally a warning is eliminated by
initializing a variable.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
src/rgw/rgw_bucket_sync.cc