358
m.refreshLock.Lock()
359
if isOwner && m.refreshHandle == nil {
360
>
// Just acquired ownership. Start refresh loop on table version to catch any updates from previous owner.
nexus_endpoint_client.go
361
>
backgroundCtx := headers.SetCallerInfo(
362
>
context.Background(),
363
>
headers.SystemBackgroundHighCallerInfo,
364
>
)
365
>
m.refreshHandle = goro.NewHandle(backgroundCtx)
366
>
m.refreshHandle.Go(m.refreshTableVersion)
367
} else if !isOwner && m.refreshHandle != nil {
368
// Just lost ownership. Stop table version refresh loop.