Skip to content

Commit 6bd9fc8

Browse files
nuno-fariaapavlo
andauthored
Fix item id assignment in AuctionMark (#358)
Co-authored-by: Andy Pavlo <[email protected]>
1 parent b4a20ed commit 6bd9fc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/com/oltpbenchmark/benchmarks/auctionmark/AuctionMarkProfile.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,9 +698,9 @@ public ItemId getNextItemId(UserId seller_id) {
698698
Integer cnt = this.seller_item_cnt.get(seller_id);
699699
if (cnt == null || cnt == 0) {
700700
cnt = seller_id.getItemCount();
701-
//this.seller_item_cnt.put(seller_id, cnt);
701+
this.seller_item_cnt.put(seller_id, cnt);
702702
}
703-
this.seller_item_cnt.put(seller_id, cnt);
703+
this.seller_item_cnt.put(seller_id, 1);
704704
return (new ItemId(seller_id, cnt));
705705
}
706706

0 commit comments

Comments
 (0)