-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Feature: sync all snapshot data in Pika process without rsync subprocess #1805
Changes from 1 commit
73dc198
4b92d87
c93f5d6
8ba038f
dd51cde
4bbd2e6
d23e398
7785b42
e4aa948
26d4db8
547530c
7bac336
b2f4091
1b4b979
fa96b9d
84e69da
3fe94e4
0d35c3b
1130130
612f5e4
63c4a7e
dc86779
002d34d
1918b90
9583007
852b8d6
f39a024
ce861f7
bbf6585
17217ac
44c57ed
5983379
fe25080
6fa3717
f48726b
1e7750b
c5936b2
afd133a
4a54423
bbd489c
17095de
2090367
2be71f4
01b6a22
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 |
---|---|---|
|
@@ -34,9 +34,8 @@ class PikaServer; | |
/* Port shift */ | ||
const int kPortShiftRSync = 1000; | ||
const int kPortShiftReplServer = 2000; | ||
// todo 待移除,使用 kPortShiftRSync | ||
//TODO: Temporarily used for rsync server port shift | ||
const int kPortShiftRsync2 = 10001; | ||
|
||
const std::string kPikaPidFile = "pika.pid"; | ||
const std::string kPikaSecretFile = "rsync.secret"; | ||
const std::string kDefaultRsyncAuth = "default"; | ||
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. Based on the provided code patch, here is a brief code review:
Improvement suggestions:
Remember to thoroughly test the code after making these changes to ensure proper functionality. 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. Based on the code patch you provided, here are some observations:
Overall, without further context or the complete code, it is difficult to identify any potential bugs or suggest additional improvements beyond what has been mentioned. A comprehensive code review requires examining the broader codebase and understanding the overall architecture and requirements. |
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,3 +46,4 @@ message RsyncResponse { | |
optional MetaResponse meta_resp = 6; | ||
optional FileResponse file_resp = 7; | ||
} | ||
|
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.
// TODO: Temporarily used for rsync server port shift. will be deleted.