mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-25 19:10:42 +00:00
transport/server: Fix response::write_byte()
The last two arguments to vector::insert() are flipped which causes us to fill the vector with 'b' bytes of value 0x01. Switch to the single element insertion variant to fix the issue. Spotted by dtest push notification tests. Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
This commit is contained in:
@@ -1246,7 +1246,7 @@ sstring cql_server::response::make_frame(uint8_t version, size_t length)
|
||||
|
||||
void cql_server::response::write_byte(uint8_t b)
|
||||
{
|
||||
_body.insert(_body.end(), b, 1);
|
||||
_body.insert(_body.end(), b);
|
||||
}
|
||||
|
||||
void cql_server::response::write_int(int32_t n)
|
||||
|
||||
Reference in New Issue
Block a user