mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 17:10:50 +00:00
Streams: fix streamTrimByLength() standalone items skipping.
This commit is contained in:
parent
0540803288
commit
0248a6b125
@ -383,7 +383,7 @@ int64_t streamTrimByLength(stream *s, size_t maxlen, int approx) {
|
|||||||
if (flags & STREAM_ITEM_FLAG_SAMEFIELDS) {
|
if (flags & STREAM_ITEM_FLAG_SAMEFIELDS) {
|
||||||
to_skip = master_fields_count;
|
to_skip = master_fields_count;
|
||||||
} else {
|
} else {
|
||||||
to_skip = lpGetInteger(p); p = lpNext(lp,p);
|
to_skip = lpGetInteger(p);
|
||||||
to_skip = 1+(to_skip*2);
|
to_skip = 1+(to_skip*2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user