Skip to content

Commit 0ac46a0

Browse files
authored
Merge pull request #150 from muzarski/exec_profile_no_speculative
exec_profile: set no speculative execution
2 parents 3989ab2 + fddfe42 commit 0ac46a0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

scylla-rust-wrapper/src/exec_profile.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,17 @@ pub unsafe extern "C" fn cass_execution_profile_set_consistency(
248248
CassError::CASS_OK
249249
}
250250

251+
#[no_mangle]
252+
pub unsafe extern "C" fn cass_execution_profile_set_no_speculative_execution_policy(
253+
profile: *mut CassExecProfile,
254+
) -> CassError {
255+
let profile_builder = ptr_to_ref_mut(profile);
256+
257+
profile_builder.modify_in_place(|builder| builder.speculative_execution_policy(None));
258+
259+
CassError::CASS_OK
260+
}
261+
251262
#[no_mangle]
252263
pub unsafe extern "C" fn cass_execution_profile_set_constant_speculative_execution_policy(
253264
profile: *mut CassExecProfile,

0 commit comments

Comments
 (0)