mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-29 19:21:01 +00:00
Due to lack of checks present in process_execute_internal from transport/server.cc needs_authorization bool was always set to true doing some extra work (check_access()) for each request. We mirror the logic in this patch in test env which perf-simple-query uses. This can also potentially improve runtime of unittests (marginally). Note that bug is only in perf tool not scylla itself, the fix decreases insns/op by around 10%: Before: 41065 insns/op After: 37452 insns/op Command: ./build/release/scylla perf-simple-query --duration 5 --smp 1 Fixes https://github.com/scylladb/scylladb/issues/27941 Closes scylladb/scylladb#28704