Optimize ScopedShardVersionCriticalSection in order to avoid convoy on SSV after a shardVersion change

XMLWordPrintableJSON

    • Fully Compatible
    • Sharding 2020-05-18, Sharding 2020-06-01
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Optimize ScopedShardVersionCriticalSection class with respect to multi-thread initialization. In particular in the case where a lot of threads try to concurrently instantiate this object.

      The idea is to avoid entering in the critical session if it is not strictly needed.

       
      Modify onShardVersionMismatch in order to:

      Update forceShardFilteringMetadataRefresh:

      • Remove forceRefreshFromThisThread flag
      • Remove unused hasAdditionalCatalogCacheForFiltering part

              Assignee:
              Pierlauro Sciarelli
              Reporter:
              Tommaso Tocci
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: