Skip to content
  • Maysam Yabandeh's avatar
    Refresh snapshot list during long compactions (#5099) · 506e8448
    Maysam Yabandeh authored
    Summary:
    Part of compaction cpu goes to processing snapshot list, the larger the list the bigger the overhead. Although the lifetime of most of the snapshots is much shorter than the lifetime of compactions, the compaction conservatively operates on the list of snapshots that it initially obtained. This patch allows the snapshot list to be updated via a callback if the compaction is taking long. This should let the compaction to continue more efficiently with much smaller snapshot list.
    Pull Request resolved: https://github.com/facebook/rocksdb/pull/5099
    
    Differential Revision: D15086710
    
    Pulled By: maysamyabandeh
    
    fbshipit-source-id: 7649f56c3b6b2fb334962048150142a3bf9c1a12
    506e8448