]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Add iterator's lower and upper bounds to `TraceRecord` (#8677)
authorMerlin Mao <qzmao@fb.com>
Fri, 20 Aug 2021 00:26:11 +0000 (17:26 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Fri, 20 Aug 2021 00:27:12 +0000 (17:27 -0700)
commitff8953380f356768d5ea7bf26b2734d86484d228
tree289ece9223c2ada1c5e5d5a8ea64fc39ed299a0e
parent9eb002fcf033f6e980448cc655df6aac3a9cc804
Add iterator's lower and upper bounds to `TraceRecord` (#8677)

Summary:
Trace file V2 added lower/upper bounds to `Iterator::Seek()` and `Iterator::SeekForPrev()`. They were not used anywhere during the execution of a `TraceRecord`. Now they are added to be used by `ReadOptions` during `Iterator::Seek()` and `Iterator::SeekForPrev()` if they are set.

Added test cases in `DBTest2.TraceAndManualReplay`.

Pull Request resolved: https://github.com/facebook/rocksdb/pull/8677

Reviewed By: zhichao-cao

Differential Revision: D30438255

Pulled By: autopear

fbshipit-source-id: 82563006be0b69155990e506a74951c18af8d288
db/db_test2.cc
include/rocksdb/trace_record.h
trace_replay/trace_record.cc
trace_replay/trace_record_handler.cc
trace_replay/trace_replay.cc