Self represents the current replica.
()
| 393 | |
| 394 | // Self represents the current replica. |
| 395 | func (m *Manager) Self() database.Replica { |
| 396 | m.mutex.Lock() |
| 397 | defer m.mutex.Unlock() |
| 398 | return m.self |
| 399 | } |
| 400 | |
| 401 | // AllPrimary returns every primary replica (not workspace proxy replicas), |
| 402 | // including itself. |