hyperledger-labs / fabric-smart-client

The Fabric Smart Client is a new Fabric Client that lets you focus on the business processes and simplifies the development of Fabric-based distributed application.
Apache License 2.0
52 stars 52 forks source link

Lock func #647

Closed alexandrosfilios closed 3 months ago

alexandrosfilios commented 3 months ago

When CREATE OR REPLACE FUNCTION is called from two different threads (replicas), we get the following error

pq: tuple concurrently updated

Now we use a lock to coordinate the creation of the function and the trigger.