Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eivanov89
Copy link

No description provided.

@eivanov89 eivanov89 force-pushed the fix-districts-in-delivery branch 2 times, most recently from 14d4428 to f285fbc Compare September 26, 2023 19:24
@eivanov89
Copy link
Author

@apavlo could you please have a look and approve the workflow?

@eivanov89
Copy link
Author

@apavlo ping

Copy link
Member

@apavlo apavlo left a 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++) {
Copy link
Member

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?

Copy link
Author

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.

@eivanov89 eivanov89 force-pushed the fix-districts-in-delivery branch 3 times, most recently from 87d797c to a4cbd2a Compare November 26, 2023 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants