Skip to content

Commit

Permalink
MB-49031 Set lastActiveTime when sending sync message
Browse files Browse the repository at this point in the history
Otherwise, endpoint would commit harakiri

Change-Id: I1e8df8c2c45f2a7965169d6ce86d906dd301045e
  • Loading branch information
varunv-cb committed Oct 20, 2021
1 parent 11a5546 commit 1bd4f0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions secondary/dataport/endpoint.go
Expand Up @@ -485,6 +485,7 @@ loop:
}
break
}
lastActiveTime = time.Now()
case <-harakiri.C:
if time.Since(lastActiveTime) > endpoint.harakiriTm {
logging.Infof("%v committed harakiri\n", endpoint.logPrefix)
Expand Down

0 comments on commit 1bd4f0c

Please sign in to comment.