]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/spdk/lib/jsonrpc/jsonrpc_client.c
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / src / spdk / lib / jsonrpc / jsonrpc_client.c
index 70bd89c96f1f5d6afd70769149a2c39dff4a408d..e3940a4d4a3da60d30519fb11cda2142d4a5e198 100644 (file)
@@ -77,7 +77,7 @@ static const struct spdk_json_object_decoder jsonrpc_response_decoders[] = {
 };
 
 int
-spdk_jsonrpc_parse_response(struct spdk_jsonrpc_client *client)
+jsonrpc_parse_response(struct spdk_jsonrpc_client *client)
 {
        struct spdk_jsonrpc_client_response_internal *r;
        ssize_t rc;
@@ -93,7 +93,7 @@ spdk_jsonrpc_parse_response(struct spdk_jsonrpc_client *client)
        }
 
        SPDK_DEBUGLOG(SPDK_LOG_RPC_CLIENT, "JSON string is :\n%s\n", client->recv_buf);
-       if (rc < 0 || rc > SPDK_JSONRPC_MAX_VALUES) {
+       if (rc < 0 || rc > SPDK_JSONRPC_CLIENT_MAX_VALUES) {
                SPDK_ERRLOG("JSON parse error (rc: %zd)\n", rc);
                /*
                 * Can't recover from parse error (no guaranteed resync point in streaming JSON).