Skip to content
  • Harshavardhana's avatar
    fix: various optimizations, idiomatic changes (#9179) · cfc9cfd8
    Harshavardhana authored
    - acquire since leader lock for all background operations
      - healing, crawling and applying lifecycle policies.
    
    - simplify lifecyle to avoid network calls, which was a
      bug in implementation - we should hold a leader and
      do everything from there, we have access to entire
      name space.
    
    - make listing, walking not interfere by slowing itself
      down like the crawler.
    
    - effectively use global context everywhere to ensure
      proper shutdown, in cache, lifecycle, healing
    
    - don't read `format.json` for prometheus metrics in
      StorageInfo() call.
    cfc9cfd8