Skip to content

skip rdbLoad when it is slave and waking up - #1543

Closed
charsyam wants to merge 1 commit into
redis:unstablefrom
charsyam:skip_rdbload_slave
Closed

charsyam wants to merge 1 commit into
redis:unstablefrom
charsyam:skip_rdbload_slave

Conversation

@charsyam

@charsyam charsyam commented Feb 8, 2014

Copy link
Copy Markdown
Contributor

Because slave will send sync command to Master.
and that time It will load RDB.
so Slave doesn't need to load RDB when it start.

mattsta pushed a commit to mattsta/redis that referenced this pull request Aug 2, 2014
The replica instance will immediately sync with a master anyway,
so we don't need to load anything from disk.

If we add support for PSYNC after instance restart, we will
need different logic here anyway.

Closes redis#1543
@mattsta mattsta mentioned this pull request Aug 2, 2014
mattsta pushed a commit to mattsta/redis that referenced this pull request Aug 6, 2014
The replica instance will immediately sync with a master anyway,
so we don't need to load anything from disk.

If we add support for PSYNC after instance restart, we will
need different logic here anyway.

Closes redis#1543
@mattsta

mattsta commented Aug 25, 2014

Copy link
Copy Markdown
Contributor

Denied because "It breaks Cluster / Sentinel failovers after a slave restart and the config directive to serve stale data if we can't connect with the master. In general a slave should do everything is its power to serve stuff after a restart. If it will later be able to connect with the master to refresh its view of the data, fine, otherwise what is authoritative is the latest data it was able to obtain."

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