bdev/rbd: Fix the decode error in bdev_rbd_register_cluster

Incorrect decode function used for the param "config_file" in
rpc_bdev_rbd_register_cluster

Signed-off-by: Tan Long <tanl12@chinatelecom.cn>
Change-Id: I6286c5d0d8396a1b548095975924087ba4ee92d2
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/10444
Community-CI: Mellanox Build Bot
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
Tan Long 2021-11-29 02:24:56 -05:00 committed by Tomasz Zawadzki
parent c1831303e0
commit 83996cc3b9

View File

@ -275,7 +275,7 @@ static const struct spdk_json_object_decoder rpc_register_cluster_decoders[] = {
{"name", offsetof(struct cluster_register_info, name), spdk_json_decode_string, true},
{"user_id", offsetof(struct cluster_register_info, user_id), spdk_json_decode_string, true},
{"config_param", offsetof(struct cluster_register_info, config_param), bdev_rbd_decode_config, true},
{"config_file", offsetof(struct cluster_register_info, config_file), bdev_rbd_decode_config, true}
{"config_file", offsetof(struct cluster_register_info, config_file), spdk_json_decode_string, true}
};
static void