Fix some wrong server.dirty increments#8140
Fix some wrong server.dirty increments#8140oranagra merged 10 commits intoredis:unstablefrom sundb:fix_spop_add_dirty
Conversation
Ths, These two increments really seem unnecessary. |
|
@itamarhaber @guybe7 please confirm that i'm not missing anything. |
|
@oranagra
|
|
Sorry, I can't confirm although it looks ok. I believe, in the sense that's my current understanding, that as long as dirty is larger than the number of keys modified, it should be ok... but belief isn't something you build software with :) |
|
@sundb one last thing before i merge this, did you go over all the commands that change multiple elements, and these were the only two that needed such a fix? |
These days in the hospital, and so home I went through all the codes. |
|
@sundb I hope all is well with you and yours. |
|
@itamarhaber Thanks. |
|
@oranagra I have gone through all the code that involves server.dirty modification, I think there should be ok. |
Fix wrong server dirty increment in * spopWithCountCommand * hsetCommand * ltrimCommand * pfaddCommand Some didn't increment the amount of fields (just one per command). Others had excessive increments.
Fix wrong server dirty increment in * spopWithCountCommand * hsetCommand * ltrimCommand * pfaddCommand Some didn't increment the amount of fields (just one per command). Others had excessive increments.
|
I think it might be better to unify, in the future. We use list as a MQ in some simple scenarios. Like: pipeline.lrange('log:stat:xxxx_log', 0, args.chunk - 1)
pipeline.ltrim('log:stat:xxxx_log', args.chunk, -1)The changes in Because I always thought that changes in save are about keys.... in redis.conf we can see: Although this seems reasonable, the list has indeed changed so many times. |
|
I'm not 100% certain what's the right thing and what was the intention. |
i want to fix the outdated doc (about the key word) and i suppose we can also mention the
|
|
i agree, the word "key" is outdated. |
For some complex data types, server.dirty actually counts the number of elements that have been changed. And in FLUSHDB or FLUSHALL, we count the number of keys. So the word "key" is not strictly correct and is outdated. Some discussion can be seen at redis#8140.
For some complex data types, server.dirty actually counts the number of elements that have been changed. And in FLUSHDB or FLUSHALL, we count the number of keys. So the word "key" is not strictly correct and is outdated. Some discussion can be seen at #8140.
Uh oh!
There was an error while loading. Please reload this page.