]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: create image should return unique error code on id collision
authorJason Dillaman <dillaman@redhat.com>
Wed, 16 May 2018 13:26:32 +0000 (09:26 -0400)
committerJason Dillaman <dillaman@redhat.com>
Mon, 24 Sep 2018 19:11:02 +0000 (15:11 -0400)
commit5148164af836aeb74eaf605636a8cc344c6393e4
tree4c98220c73e79d7e6cba4282ff1564537919abe9
parent9054ed81da51d2c026231d5252e093c2a89c2dc1
librbd: create image should return unique error code on id collision

The image id is composed of the librados global instance id and a random
number. For long-lived clients that create multiple images (basically
only rbd-mirror daemon), it's more likely to hit a collision.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/librbd/image/CloneRequest.cc
src/librbd/image/CreateRequest.cc