-
Notifications
You must be signed in to change notification settings - Fork 538
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove master
and slave
from source code
#591
Conversation
Signed-off-by: Ping Xie <pingxie@google.com>
Signed-off-by: Ping Xie <pingxie@google.com>
Signed-off-by: Ping Xie <pingxie@google.com>
Signed-off-by: Ping Xie <pingxie@google.com>
Signed-off-by: Ping Xie <pingxie@google.com>
Signed-off-by: Ping Xie <pingxie@google.com>
Signed-off-by: Ping Xie <pingxie@google.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #591 +/- ##
============================================
+ Coverage 70.21% 70.26% +0.04%
============================================
Files 110 110
Lines 59994 60007 +13
============================================
+ Hits 42124 42161 +37
+ Misses 17870 17846 -24
|
Before begin to take look this huge PR, can we setup several step for this. My suggestion as below:
I suggest even this PR is approved, do not merge yet until step 1 is done. |
@hwware I think 2 should be done first and this is what this PR is about. It should not impact any code behavior. thoughts? |
Also I don't think we can do much about 1 and 3 in the foreseeable future so really the order IMO is 2,4,1,3 with 2 being the safest and should be done sooner rather than later (due to the sheer size of the change). |
My concern is developers have no idea where the term "primary" comes from (although most people can understand, primary is almost master) |
We did document it in the source code already - Line 10 in 4176604
But yeah I think we should scrub the documentation too |
No problem, let us first go through this pr and then discuss other steps. |
@@ -1073,7 +1073,8 @@ void flushAppendOnlyFile(int force) { | |||
* (because there's no reason, from the AOF POV, to call fsync) and then WAITAOF may wait on |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I notice in this pr, you update comment as well, pls update the above line master_repl_offset to primary_repl_offset
@@ -1365,9 +1366,9 @@ struct client *createAOFClient(void) { | |||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pls update line 1358 "master"
@@ -2408,7 +2409,7 @@ int rewriteAppendOnlyFileBackground(void) { | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line 2406
Signed-off-by: Ping Xie <pingxie@google.com>
) Make the one backwards compatible config change we are allowed to replace for removing master from our API. `masterauth` and `masteruser` are still used as an alias, but aren't explicitly referenced. As an addendum to #591, it would be good to have this in 8. Given the related PR for updated other references for master, I just updated the ones around this specific change. Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
Signed-off-by: Ping Xie <pingxie@google.com>
Let us merge and then document it. |
…alkey-io#598) Make the one backwards compatible config change we are allowed to replace for removing master from our API. `masterauth` and `masteruser` are still used as an alias, but aren't explicitly referenced. As an addendum to valkey-io#591, it would be good to have this in 8. Given the related PR for updated other references for master, I just updated the ones around this specific change. Signed-off-by: Madelyn Olson <madelyneolson@gmail.com> Signed-off-by: Adva Moshkovitz <advamo7@gmail.com>
External facing interfaces are not affected. --------- Signed-off-by: Ping Xie <pingxie@google.com>
…alkey-io#598) Make the one backwards compatible config change we are allowed to replace for removing master from our API. `masterauth` and `masteruser` are still used as an alias, but aren't explicitly referenced. As an addendum to valkey-io#591, it would be good to have this in 8. Given the related PR for updated other references for master, I just updated the ones around this specific change. Signed-off-by: Madelyn Olson <madelyneolson@gmail.com>
External facing interfaces are not affected. --------- Signed-off-by: Ping Xie <pingxie@google.com>
External facing interfaces are not affected.