Skip to content
  • Artem Barger's avatar
    [FAB-9955] Use coll. conf available at endorsement · 44fd7722
    Artem Barger authored
    There is possible data race condition while distributing private data,
    since now we have to support dynamic collections, where it's possible
    that collection config might be updated right after the endorsement,
    therefore in distributor while looking up for collection config from
    collection store we might get updated config which might be not lober
    relevant for the private data in context.
    This commit refactors the distribution flow my actually making use of
    the collection config which is available at the endorsement time,
    which also allows to optimize, since reduces the need to execute
    queries with collection store. Additional since using collection config
    which was available during endorsement allows to elliminate the race
    condition. Addresses comments of code-review: CR-21491.
    Change-Id: I0d3c682a613bf3ae5b46e32230fadf6b12895fdf
    Signed-off-by: default avatarArtem Barger <>