Skip to content

isSafeToPerformEvictions: Remove redundant condition#10610

Merged
oranagra merged 1 commit intoredis:unstablefrom
guybe7:fix_also_prop_left
Apr 24, 2022
Merged

isSafeToPerformEvictions: Remove redundant condition#10610
oranagra merged 1 commit intoredis:unstablefrom
guybe7:fix_also_prop_left

Conversation

@guybe7
Copy link
Collaborator

@guybe7 guybe7 commented Apr 20, 2022

If was first added in #9890 to solve the problem of
CONFIG SET maxmemory causing eviction inside MULTI/EXEC,
but that problem is already fixed (CONFIG SET doesn't evict
directly, it just schedules a later eviction)

Keep that condition may hide bugs (i.e. performEvictions
should always expect to have an empty server.also_propagate)

If was first added in redis#9890 to solve the problem of
CONFIG SET maxmemory causing eviction inside MULTI/EXEC,
but that problem is already fixed (CONFIG SET doesn't evict
directly, it just schedules a later eviction)

Keep that condition may hide bugs (i.e. performEvictions
should always expect to have an empty server.also_propagate)
Copy link
Member

@oranagra oranagra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

great.
for the record, we have an assertion later:

serverAssert(server.also_propagate.numops == 0);

@oranagra oranagra merged commit 8ad0cfa into redis:unstable Apr 24, 2022
enjoy-binbin pushed a commit to enjoy-binbin/redis that referenced this pull request Jul 31, 2023
If was first added in redis#9890 to solve the problem of
CONFIG SET maxmemory causing eviction inside MULTI/EXEC,
but that problem is already fixed (CONFIG SET doesn't evict
directly, it just schedules a later eviction)

Keep that condition may hide bugs (i.e. performEvictions
should always expect to have an empty server.also_propagate)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants