diff options
Diffstat (limited to 'test/core/memory_usage')
-rw-r--r-- | test/core/memory_usage/client.c | 8 | ||||
-rw-r--r-- | test/core/memory_usage/server.c | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/test/core/memory_usage/client.c b/test/core/memory_usage/client.c index 0cab872014..09f0e2d867 100644 --- a/test/core/memory_usage/client.c +++ b/test/core/memory_usage/client.c @@ -81,7 +81,8 @@ static void init_ping_pong_request(int call_idx) { op->flags = GRPC_INITIAL_METADATA_WAIT_FOR_READY; op++; op->op = GRPC_OP_RECV_INITIAL_METADATA; - op->data.recv_initial_metadata = &calls[call_idx].initial_metadata_recv; + op->data.recv_initial_metadata.recv_initial_metadata = + &calls[call_idx].initial_metadata_recv; op++; grpc_slice hostname = grpc_slice_from_static_string("localhost"); @@ -138,10 +139,11 @@ static struct grpc_memory_counters send_snapshot_request(int call_idx, op->op = GRPC_OP_SEND_CLOSE_FROM_CLIENT; op++; op->op = GRPC_OP_RECV_INITIAL_METADATA; - op->data.recv_initial_metadata = &calls[call_idx].initial_metadata_recv; + op->data.recv_initial_metadata.recv_initial_metadata = + &calls[call_idx].initial_metadata_recv; op++; op->op = GRPC_OP_RECV_MESSAGE; - op->data.recv_message = &response_payload_recv; + op->data.recv_message.recv_message = &response_payload_recv; op++; op->op = GRPC_OP_RECV_STATUS_ON_CLIENT; op->data.recv_status_on_client.trailing_metadata = diff --git a/test/core/memory_usage/server.c b/test/core/memory_usage/server.c index e8774bd976..1cae4f4064 100644 --- a/test/core/memory_usage/server.c +++ b/test/core/memory_usage/server.c @@ -130,13 +130,13 @@ static void send_snapshot(void *tag, struct grpc_memory_counters *snapshot) { op->data.send_initial_metadata.count = 0; op++; op->op = GRPC_OP_RECV_MESSAGE; - op->data.recv_message = &terminal_buffer; + op->data.recv_message.recv_message = &terminal_buffer; op++; op->op = GRPC_OP_SEND_MESSAGE; if (payload_buffer == NULL) { gpr_log(GPR_INFO, "NULL payload buffer !!!"); } - op->data.send_message = payload_buffer; + op->data.send_message.send_message = payload_buffer; op++; op->op = GRPC_OP_SEND_STATUS_FROM_SERVER; op->data.send_status_from_server.status = GRPC_STATUS_OK; |