Commit 3ee9be1
authored
db/state: skip Benchmark_BtreeIndex_Search when data file is absent (#19506)
`Benchmark_BtreeIndex_Search` hardcodes a path to an external data file
(`../../data/storage.256-288.kv`) that doesn't exist in the repo,
causing the benchmark to fail rather than skip when the file is absent.
This applies the same `os.Stat` + `b.Skip()` guard already used by
`Benchmark_Recsplit_Find_ExternalFile` in the same file.
Spotted while experimenting with benchmarks.1 parent b140eaf commit 3ee9be1
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
112 | 118 | | |
113 | 119 | | |
114 | 120 | | |
115 | 121 | | |
116 | | - | |
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
| |||
0 commit comments