@@ -425,7 +425,7 @@ _mongoc_cursor_op_query (mongoc_cursor_t *cursor,
425
425
GOTO (failure );
426
426
}
427
427
428
- request_id = BSON_UINT32_FROM_LE (rpc .header .request_id );
428
+ request_id = BSON_UINT32_FROM_LE (rpc .header .request_id );
429
429
430
430
_mongoc_buffer_clear (& cursor -> buffer , false);
431
431
@@ -450,7 +450,7 @@ _mongoc_cursor_op_query (mongoc_cursor_t *cursor,
450
450
bson_set_error (& cursor -> error ,
451
451
MONGOC_ERROR_PROTOCOL ,
452
452
MONGOC_ERROR_PROTOCOL_INVALID_REPLY ,
453
- "Invalid response_to. Expected %d, got %d." ,
453
+ "Invalid response_to for query . Expected %d, got %d." ,
454
454
request_id , cursor -> rpc .header .response_to );
455
455
GOTO (failure );
456
456
}
@@ -831,7 +831,7 @@ _mongoc_cursor_op_getmore (mongoc_cursor_t *cursor,
831
831
ENTRY ;
832
832
833
833
if (cursor -> in_exhaust ) {
834
- request_id = BSON_UINT32_FROM_LE ( cursor -> rpc .header .request_id ) ;
834
+ request_id = ( uint32_t ) cursor -> rpc .header .request_id ;
835
835
} else {
836
836
rpc .get_more .cursor_id = cursor -> rpc .reply .cursor_id ;
837
837
rpc .get_more .msg_len = 0 ;
@@ -852,7 +852,7 @@ _mongoc_cursor_op_getmore (mongoc_cursor_t *cursor,
852
852
GOTO (done );
853
853
}
854
854
855
- request_id = BSON_UINT32_FROM_LE (rpc .header .request_id );
855
+ request_id = BSON_UINT32_FROM_LE (rpc .header .request_id );
856
856
}
857
857
858
858
_mongoc_buffer_clear (& cursor -> buffer , false);
@@ -878,7 +878,7 @@ _mongoc_cursor_op_getmore (mongoc_cursor_t *cursor,
878
878
bson_set_error (& cursor -> error ,
879
879
MONGOC_ERROR_PROTOCOL ,
880
880
MONGOC_ERROR_PROTOCOL_INVALID_REPLY ,
881
- "Invalid response_to. Expected %d, got %d." ,
881
+ "Invalid response_to for getmore . Expected %d, got %d." ,
882
882
request_id , cursor -> rpc .header .response_to );
883
883
GOTO (done );
884
884
}
0 commit comments