kikocis/java-driver public
Changesets · Branches · Tags · Compare
| Changeset | a8fd72b9ccb65cd3a78e0c19db8ee24d9d81da4ce851969b7c0845c1dedcdf52 |
|---|---|
| Author | Kevin Gallardo <kevin.gallardo@datastax.com> · 2015-06-24 10:38 +01:00 |
| Committer | Kevin Gallardo <kevin.gallardo@datastax.com> · 2015-06-24 10:38 +01:00 |
| Parents | 44de4c82067d |
1 file changed
modified driver-core/src/main/java/com/datastax/driver/core/policies/DowngradingConsistencyRetryPolicy.java +1 −1
| @@ -156,7 +156,7 @@ | ||
| 156 | 156 | case SIMPLE: |
| 157 | 157 | case BATCH: |
| 158 | 158 | // Since we provide atomicity there is no point in retrying |
| 159 | - return requiredAcks > 0 ? RetryDecision.ignore() : RetryDecision.rethrow(); | |
| 159 | + return receivedAcks > 0 ? RetryDecision.ignore() : RetryDecision.rethrow(); | |
| 160 | 160 | case UNLOGGED_BATCH: |
| 161 | 161 | // Since only part of the batch could have been persisted, |
| 162 | 162 | // retry with whatever consistency should allow to persist all |