- Client SDK will connect to a node, get node information and decide if it needs to connect to a primary for writes, or pick a replica to connect to for reads - Updated service with a GetNodeInfo rpc call which returns information about the node to enable the smart selection code in the sdks
15 lines
268 B
Go
15 lines
268 B
Go
package storage
|
|
|
|
import (
|
|
"github.com/KevoDB/kevo/pkg/wal"
|
|
)
|
|
|
|
// GetWAL returns the storage manager's WAL instance
|
|
// This is used by the replication manager to access the WAL
|
|
func (m *Manager) GetWAL() *wal.WAL {
|
|
m.mu.RLock()
|
|
defer m.mu.RUnlock()
|
|
|
|
return m.wal
|
|
}
|