]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Fix reseting of async_read_in_progress_ variable in FilePrefetchBuffer to call Poll...
authorAkanksha Mahajan <akankshamahajan@fb.com>
Thu, 7 Apr 2022 01:36:23 +0000 (18:36 -0700)
committerakankshamahajan <akankshamahajan@fb.com>
Thu, 7 Apr 2022 16:03:53 +0000 (09:03 -0700)
commit71158842aababb0477f708e7a62bd1d0ef804bbf
tree7a120799d56f596b97ea295fa429c5bd619e1d9e
parent78641c093032f495bc42198a3f5c72509374d170
Fix reseting of async_read_in_progress_ variable in FilePrefetchBuffer to call Poll API (#9815)

Summary:
Currently RocksDB reset async_read_in_progress_ in callback
due to which underlying filesystem relying on Poll API won't be called
leading to stale memory access.
In order to fix it, async_read_in_progress_ will be reset after Poll API
is called to make sure underlying file_system waiting on Poll can clear
its state or take appropriate action.

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

Test Plan: CircleCI tests

Reviewed By: anand1976

Differential Revision: D35451534

Pulled By: akankshamahajan15

fbshipit-source-id: b70ef6251a7aa9ed4876ba5e5100baa33d7d474c
file/file_prefetch_buffer.cc