File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 7
7
### Enhancements
8
8
9
9
### Bug Fixes
10
+ db_bench: fix SeekRandomWriteRandom valid check. Use key and value only after checking iterator is valid.
10
11
11
12
### Miscellaneous
12
13
Original file line number Diff line number Diff line change @@ -8149,13 +8149,14 @@ class Benchmark {
8149
8149
}
8150
8150
8151
8151
for (int j = 0 ; j < FLAGS_seek_nexts && iter_to_use->Valid (); ++j) {
8152
+ bytes += iter_to_use->key ().size () + iter_to_use->value ().size ();
8153
+
8152
8154
if (!FLAGS_reverse_iterator) {
8153
8155
iter_to_use->Next ();
8154
8156
} else {
8155
8157
iter_to_use->Prev ();
8156
8158
}
8157
8159
assert (iter_to_use->status ().ok ());
8158
- bytes += iter_to_use->key ().size () + iter_to_use->value ().size ();
8159
8160
}
8160
8161
8161
8162
if (seeks % 256 == 255 ) {
You can’t perform that action at this time.
0 commit comments