Avi Kivity
1100a0b176
Merge 'cql3: mutation_fragments_select_statement: keep erm alive for duration of the query' from Botond Dénes
...
Said statement keeps a reference to erm indirectly, via a topology node pointer, but doesn't keep erm alive. This can result in use-after-free. Furthermore, it allows for vnodes being pulled from under the query's feet, as it is running.
To prevent this, keep the erm alive for the duration of the query.
Also, use `host_id` instead of `node`, the node pointer is not needed really, as the statement only uses the host id from it.
Fixes : #15802
Closes scylladb/scylladb#15808
* github.com:scylladb/scylladb:
cql3: mutation_fragments_select_statement: use host_id instead of node
cql3: mutation_fragments_select_statement: pin erm reference
(cherry picked from commit 782c6a208a )
2023-10-30 10:17:19 +02:00
..
2023-07-19 01:28:28 -04:00
2023-09-04 19:22:17 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-09-21 13:21:51 +02:00
2023-08-17 15:52:48 +03:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2022-05-13 07:11:58 +02:00
2023-06-28 10:18:06 +02:00
2023-02-12 17:25:41 +02:00
2022-09-20 06:18:51 +03:00
2023-02-15 11:01:50 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-08-04 19:47:50 +03:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-09-04 19:22:17 +03:00
2023-09-04 19:22:17 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-09-21 13:24:26 +02:00
2023-09-21 13:24:26 +02:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-06-22 14:21:03 +03:00
2022-05-13 07:11:58 +02:00
2023-09-24 13:03:04 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-08-01 10:07:31 +02:00
2023-06-22 13:57:36 +03:00
2023-06-22 13:57:33 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2023-04-06 09:50:32 -04:00
2023-04-06 09:50:32 -04:00
2023-05-22 17:56:16 +02:00
2022-05-13 07:11:58 +02:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2022-05-13 07:11:58 +02:00
2023-01-03 19:54:13 +02:00
2022-05-19 10:11:50 +02:00
2022-05-13 07:11:58 +02:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-09-18 21:47:28 +03:00
2023-08-17 15:52:48 +03:00
2023-10-30 10:17:19 +02:00
2023-10-30 10:17:19 +02:00
2023-06-22 13:57:33 +03:00
2023-06-22 13:57:33 +03:00
2023-04-27 10:24:46 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00
2023-07-14 15:42:58 +03:00
2022-09-08 15:25:36 +02:00
2023-08-17 15:52:48 +03:00
2023-08-17 15:52:48 +03:00