Delete all subscriptions when Ran is under reset.
[ric-plt/submgr.git] / pkg / control / transaction.go
index efb630c..282d291 100644 (file)
@@ -131,6 +131,7 @@ func (t *TransactionSubs) Release() {
 //
 //-----------------------------------------------------------------------------
 type TransactionXappKey struct {
+       InstanceID uint32
        xapp.RmrEndpoint
        Xid string // xapp xid in req
 }
@@ -199,6 +200,9 @@ func (t *TransactionXapp) Release() {
        t.mutex.Unlock()
 
        if tracker != nil && xappkey != nil {
-               tracker.UnTrackTransaction(*xappkey)
+               _, err := tracker.UnTrackTransaction(*xappkey)
+               if err != nil {
+                       xapp.Logger.Error("tracker.UnTrackTransaction() failed:%s", err.Error())
+               }
        }
 }