OSDN Git Service

migration: dirty-bitmap: Use struct for alias map inner members
authorPeter Krempa <pkrempa@redhat.com>
Fri, 12 Feb 2021 17:34:23 +0000 (18:34 +0100)
committerEric Blake <eblake@redhat.com>
Fri, 12 Feb 2021 20:50:55 +0000 (14:50 -0600)
commit0d1e450c7b3117ee635a00c81d9a92666ebc7ffa
tree64ea45d08e36d78336ef454a0299b977ed1c4a28
parenteac92d316351b855ba79eb374dd21cc367f1f9c1
migration: dirty-bitmap: Use struct for alias map inner members

Currently the alias mapping hash stores just strings of the target
objects internally. In further patches we'll be adding another member
which will need to be stored in the map so pass a copy of the whole
BitmapMigrationBitmapAlias QAPI struct into the map.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Message-Id: <fc5f27e1fe16cb75e08a248c2d938de3997b9bfb.1613150869.git.pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
[eblake: adjust long lines]
Signed-off-by: Eric Blake <eblake@redhat.com>
migration/block-dirty-bitmap.c