Skip to content

Commit 46f0fcd

Browse files
committed
exec_profile: Default to SerialConsistency::LocalSerial
Contrary to what is stated in documentation, the default SerialConsistency was None, which resulted in SerialConsistency not being set in the CQL frames. This led to ProtocolError in case of LWT statements. As it is better to always include SerialConsistency (even for statements for which it is not relevant), the previous default is reverted.
1 parent e833e40 commit 46f0fcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scylla/src/transport/execution_profile.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ pub(crate) mod defaults {
183183
Consistency::LocalQuorum
184184
}
185185
pub fn serial_consistency() -> Option<SerialConsistency> {
186-
None
186+
Some(SerialConsistency::LocalSerial)
187187
}
188188
pub fn request_timeout() -> Option<Duration> {
189189
Some(Duration::from_secs(30))

0 commit comments

Comments
 (0)