-
Notifications
You must be signed in to change notification settings - Fork 185
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
Delivery transaction must use all the districts (#360) #368
base: main
Are you sure you want to change the base?
Conversation
14d4428
to
f285fbc
Compare
f285fbc
to
326c3c9
Compare
@apavlo could you please have a look and approve the workflow? |
@apavlo ping |
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.
Minor request to just use TPCCConfig.configDistPerWhse
instead of passing around a new variable.
@@ -104,7 +104,7 @@ public void run(Connection conn, Random gen, int w_id, int numWarehouses, int te | |||
|
|||
int[] orderIDs = new int[10]; | |||
|
|||
for (d_id = 1; d_id <= terminalDistrictUpperID; d_id++) { | |||
for (d_id = 1; d_id <= w.getDistPerWhse(); d_id++) { |
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.
Instead of getting the districts per warehouse from TPCCWorker
, why not just use TPCCConfig.configDistPerWhse
since it never changes?
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.
You're right, thank you! I've updated the pull request. And I'm sorry, that it took so long time.
87d797c
to
a4cbd2a
Compare
a4cbd2a
to
3af16c0
Compare
No description provided.