Use correct bitfield offset for INCRBY using Lettuce.

Closes #2903
Original pull request: #2901
This commit is contained in:
Roman Osadchuk
2024-05-10 18:00:39 +03:00
committed by Mark Paluch
parent 3ab09fbd57
commit 2809186e4d
2 changed files with 22 additions and 1 deletions

View File

@@ -79,6 +79,7 @@ import org.springframework.util.StringUtils;
* @author Chris Bono
* @author Vikas Garg
* @author John Blum
* @author Roman Osadchuk
*/
@SuppressWarnings("ConstantConditions")
public abstract class LettuceConverters extends Converters {
@@ -720,7 +721,7 @@ public abstract class LettuceConverters extends Converters {
args = args.overflow(type);
}
args = args.incrBy(bitFieldType, (int) subCommand.getOffset().getValue(), ((BitFieldIncrBy) subCommand).getValue());
args = args.incrBy(bitFieldType, offset, ((BitFieldIncrBy) subCommand).getValue());
}
}