Skip to content

Commit

Permalink
[FAB-12176] Private data and metadata writes
Browse files Browse the repository at this point in the history
This fix lets the gossip private data coordinator recognize not only
regular writes to private data keys, but also updates of the metadata.

Change-Id: I41ac4dcdc929e1d2390a1eb75684d01c37264f4c
Signed-off-by: Matthias Neugschwandtner <eug@zurich.ibm.com>
  • Loading branch information
Matthias Neugschwandtner committed Sep 26, 2018
1 parent dbc79eb commit 46546b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gossip/privdata/coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -855,7 +855,7 @@ func containsWrites(txID string, namespace string, colHashedRWSet *rwsetutil.Col
logger.Warningf("HashedRWSet of tx %s, namespace %s, collection %s is nil", txID, namespace, colHashedRWSet.CollectionName)
return false
}
if len(colHashedRWSet.HashedRwSet.HashedWrites) == 0 {
if len(colHashedRWSet.HashedRwSet.HashedWrites) == 0 && len(colHashedRWSet.HashedRwSet.MetadataWrites) == 0 {
logger.Debugf("HashedRWSet of tx %s, namespace %s, collection %s doesn't contain writes", txID, namespace, colHashedRWSet.CollectionName)
return false
}
Expand Down

0 comments on commit 46546b3

Please sign in to comment.