mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-28 04:06:59 +00:00
We define data_type as using data_type = shared_ptr<const abstract_type>; Since it is a shared_ptr, it cannot be copied into another thread since that would create a race condition incrementing the reference counter. In particular, before this patch it is not legal to call return_type from another thread. With this patch read only access from another thread is possible. Signed-off-by: Rafael Ávila de Espíndola <espindola@scylladb.com>
3.3 KiB
3.3 KiB