diff options
| author | Douglas Rumbaugh <dbr4@psu.edu> | 2025-02-17 13:17:47 -0500 |
|---|---|---|
| committer | Douglas Rumbaugh <dbr4@psu.edu> | 2025-02-17 13:17:47 -0500 |
| commit | f2ee7bef98a10ee52fb4e9e847df0dd173f78d73 (patch) | |
| tree | 9a7fbb0dcd4efc97eab6f61f03a25d93703b9438 /benchmarks/tail-latency/mixed_workload.cpp | |
| parent | f0ac69f9d5179abd385644a520be670a8ca5e942 (diff) | |
| download | dynamic-extension-f2ee7bef98a10ee52fb4e9e847df0dd173f78d73.tar.gz | |
Fixed a few benchmark bugs
Diffstat (limited to 'benchmarks/tail-latency/mixed_workload.cpp')
| -rw-r--r-- | benchmarks/tail-latency/mixed_workload.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/benchmarks/tail-latency/mixed_workload.cpp b/benchmarks/tail-latency/mixed_workload.cpp index d8ea890..531d1fa 100644 --- a/benchmarks/tail-latency/mixed_workload.cpp +++ b/benchmarks/tail-latency/mixed_workload.cpp @@ -65,6 +65,10 @@ void operation_thread(Ext *extension, std::vector<QP> *queries, } else { for (size_t i = 0; i < 1000; i++) { auto insert_idx = idx.fetch_add(1); + if (insert_idx >= reccnt) { + inserts_done.store(true); + break; + } TIMER_START(); while (!extension->insert((*records)[insert_idx])) { |