-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: cherry pick pika 355 to 40 #3061
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
Changes from 10 commits
0aa43fc
2898a92
2af64e5
5d0b587
1be9d3f
fc14508
a47a7fc
899b347
013ac00
e780a9f
08f1a85
5c5d89d
057720a
e23ec9d
605e7a0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -106,8 +106,8 @@ func (i *InfoReplication) UnmarshalJSON(b []byte) error { | |
| } | ||
|
|
||
| i.Role = kvmap["role"] | ||
| i.MasterPort = kvmap["master_host"] | ||
| i.MasterHost = kvmap["master_port"] | ||
| i.MasterPort = kvmap["master_port"] | ||
| i.MasterHost = kvmap["master_host"] | ||
|
Comment on lines
+109
to
+110
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed critical field assignment bug in This change corrects a critical bug where master host and port values were previously swapped during JSON unmarshalling. The fix ensures proper assignment of host and port values, preventing potential connection issues between master and slave servers. |
||
| i.MasterLinkStatus = kvmap["master_link_status"] | ||
| i.IsEligibleForMasterElection = kvmap["is_eligible_for_master_election"] == "true" | ||
|
|
||
|
|
||
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.
💡 Verification agent
🧩 Analysis chain
Added new target to generate version information
The new generate-version target executes a script located at ./version to generate version information for the build artifacts.
🏁 Script executed:
Length of output: 91
Action Required: Missing 'version' Script File
The
generate-versiontarget incodis/Makefile(lines 35-37) calls./versionto generate version information. However, our verification script confirms that the./versionfile does not exist in the repository. Please ensure that the missing script is added or update the Makefile target to reference the correct script.