mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-22 01:20:39 +00:00
audit: restore static_cast for batch inspect
Closes scylladb/scylladb#29545
This commit is contained in:
committed by
Nadav Har'El
parent
6ce0968960
commit
caaef45b7a
@@ -271,7 +271,7 @@ future<> inspect(shared_ptr<cql3::cql_statement> statement, const service::query
|
||||
return make_ready_future<>();
|
||||
}
|
||||
if (audit_info->batch()) {
|
||||
cql3::statements::batch_statement* batch = dynamic_cast<cql3::statements::batch_statement*>(statement.get());
|
||||
cql3::statements::batch_statement* batch = static_cast<cql3::statements::batch_statement*>(statement.get());
|
||||
return do_for_each(batch->statements().begin(), batch->statements().end(), [&query_state, &options, error] (auto&& m) {
|
||||
return inspect(m.statement, query_state, options, error);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user