summaryrefslogtreecommitdiffhomepage
path: root/server/fsm.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-03 05:52:31 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2016-08-03 05:52:31 +0900
commit0082b4889e35883d9f0aeb07c3d6827b3f129e1b (patch)
tree6ecf9abb12783056973fead3b7362e85466ced5b /server/fsm.go
parent6f3d90f80cb40723f0f391041e88d24d1b2b0de1 (diff)
move policyMutex to policy/
It's more logical. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'server/fsm.go')
-rw-r--r--server/fsm.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/server/fsm.go b/server/fsm.go
index 780a2b32..5ac3e6a2 100644
--- a/server/fsm.go
+++ b/server/fsm.go
@@ -657,7 +657,6 @@ func (h *FSMHandler) recvMessageWithError() (*FsmMsg, error) {
if err == nil {
fmsg.PathList = table.ProcessMessage(m, h.fsm.peerInfo, fmsg.timestamp)
id := h.fsm.pConf.Config.NeighborAddress
- policyMutex.RLock()
for _, path := range fmsg.PathList {
if path.IsEOR() {
continue
@@ -666,7 +665,6 @@ func (h *FSMHandler) recvMessageWithError() (*FsmMsg, error) {
path.Filter(id, table.POLICY_DIRECTION_IN)
}
}
- policyMutex.RUnlock()
} else {
fmsg.MsgData = err
}