We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6c3f50 commit 9f86b93Copy full SHA for 9f86b93
1 file changed
coordinode/coordinode/client.py
@@ -278,7 +278,7 @@ async def cypher(
278
# Causal reads (after_index > 0) are only satisfiable when writes were
279
# acknowledged by a majority; otherwise the referenced index may never
280
# replicate and the read would hang. Mirror the server's rejection.
281
- if after_index is not None and after_index > 0 and (write_concern or "").lower() != "majority":
+ if after_index is not None and after_index > 0 and (write_concern or "").strip().lower() != "majority":
282
raise ValueError(
283
"after_index > 0 requires write_concern='majority' — causal reads "
284
"depend on majority-committed writes. Pass write_concern='majority'."
0 commit comments