-
Notifications
You must be signed in to change notification settings - Fork 687
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
Fix the wrong woff when execute WAIT / WAITAOF in script #776
Conversation
@zuiderkwast this is the reason why #766 failed. The other test enable the appendonly, and the c->woff is always 0, so 0 >= 0 is always true |
When executing the script, the client passed in is a fake client, and its woff is always 0. Signed-off-by: Binbin <[email protected]>
0f9e388
to
5f6280c
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## unstable #776 +/- ##
============================================
+ Coverage 70.04% 70.24% +0.20%
============================================
Files 112 112
Lines 60602 60608 +6
============================================
+ Hits 42447 42574 +127
+ Misses 18155 18034 -121
|
Signed-off-by: Binbin <[email protected]>
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.
Nice!
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.
Awesome Binbin!
Signed-off-by: Binbin <[email protected]>
Signed-off-by: Binbin <[email protected]>
Signed-off-by: Binbin <[email protected]>
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 thought with this fix, we don't need to change 0
to *
(#775), but that's OK too.
we still need to change 0 to *, if the appendonly is yes, the test will still fail. that is because when we are executing the script, neither fsynced_off nor woff are updated, so we will still get the old (prev) values in waitaof. |
When executing the script, the client passed in is a fake client, and its woff is always 0. This results in woff always being 0 when executing wait/waitaof in the script, and the command returns a wrong number. --------- Signed-off-by: Binbin <[email protected]>
When executing the script, the client passed in is a fake
client, and its woff is always 0.
This results in woff always being 0 when executing wait/waitaof
in the script, and the command returns a wrong number.