Commit d9fbcc3
committed
sqlstats: fix insights benchmark bugs
- Transactions slice length was incorrectly initialized.
- Transactions needed to set a UUID in order to get observed
by the `observeTransaction` function and actually trigger
the code that's being benchmarked.
- Indexing into the `transactions` slice in the benchmark was
incorrectly using `idx` instead of `i` and grabbing empty
objects.
Resolves: #151300
Epic: None
Release note: None1 parent 91a2138 commit d9fbcc3
2 files changed
+5
-3
lines changedBinary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | | - | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
66 | 67 | | |
67 | 68 | | |
68 | 69 | | |
69 | | - | |
| 70 | + | |
| 71 | + | |
70 | 72 | | |
71 | 73 | | |
72 | 74 | | |
| |||
76 | 78 | | |
77 | 79 | | |
78 | 80 | | |
79 | | - | |
| 81 | + | |
80 | 82 | | |
81 | 83 | | |
82 | 84 | | |
| |||
0 commit comments