]> git-server-git.apps.pok.os.sepia.ceph.com Git - rocksdb.git/commit
Fix a race condition in DumpStats() during iteration of the ColumnFamilySet (#8714)
authoranand76 <anand76@devvm4702.ftw0.facebook.com>
Thu, 26 Aug 2021 22:39:32 +0000 (15:39 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 26 Aug 2021 22:40:26 +0000 (15:40 -0700)
commitebaa3c8a59648fdb77ff3af66bcf8a5ac03336ad
tree45812cb0f7f863d5e5bc9548faf0941d9d018f43
parent4afa24f8ae18aa4e173835f70bb608d336b46554
Fix a race condition in DumpStats() during iteration of the ColumnFamilySet (#8714)

Summary:
DumpStats() iterates through the ColumnFamilySet. There is a potential
race condition because it does Ref the cfd, and the cfd could get
destroyed during the iteration.

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

Test Plan: make check

Reviewed By: ltamasi

Differential Revision: D30580199

Pulled By: anand1976

fbshipit-source-id: 60a3443ad0d4f7ac6a977dec780e6d2c1b70b850
HISTORY.md
db/db_impl/db_impl.cc