Code Review
/
ric-plt
/
submgr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
RICPLT-2989 Submgr routing manager client code to support multiple endpoints
[ric-plt/submgr.git]
/
pkg
/
control
/
transaction.go
diff --git
a/pkg/control/transaction.go
b/pkg/control/transaction.go
index
a0a260f
..
735954e
100644
(file)
--- a/
pkg/control/transaction.go
+++ b/
pkg/control/transaction.go
@@
-109,7
+109,7
@@
type Transaction struct {
XappKey *TransactionXappKey //
}
XappKey *TransactionXappKey //
}
-func (t *Transaction) String
Impl
() string {
+func (t *Transaction) String() string {
var transkey string = "transkey(N/A)"
if t.XappKey != nil {
transkey = t.XappKey.String()
var transkey string = "transkey(N/A)"
if t.XappKey != nil {
transkey = t.XappKey.String()
@@
-117,12
+117,6
@@
func (t *Transaction) StringImpl() string {
return "trans(" + strconv.FormatUint(uint64(t.Seq), 10) + "/" + t.Meid.RanName + "/" + transkey + ")"
}
return "trans(" + strconv.FormatUint(uint64(t.Seq), 10) + "/" + t.Meid.RanName + "/" + transkey + ")"
}
-func (t *Transaction) String() string {
- t.mutex.Lock()
- defer t.mutex.Unlock()
- return t.StringImpl()
-}
-
func (t *Transaction) GetEndpoint() *RmrEndpoint {
t.mutex.Lock()
defer t.mutex.Unlock()
func (t *Transaction) GetEndpoint() *RmrEndpoint {
t.mutex.Lock()
defer t.mutex.Unlock()
@@
-152,7
+146,7
@@
func (t *Transaction) GetSrc() string {
func (t *Transaction) Release() {
t.mutex.Lock()
func (t *Transaction) Release() {
t.mutex.Lock()
- xapp.Logger.Debug("Transaction: Release %s", t.String
Impl
())
+ xapp.Logger.Debug("Transaction: Release %s", t.String())
tracker := t.tracker
xappkey := t.XappKey
t.tracker = nil
tracker := t.tracker
xappkey := t.XappKey
t.tracker = nil