MCPcopy Create free account
hub / github.com/apache/kvrocks-controller / GetDataStoreSnapshot

Method GetDataStoreSnapshot

store/engine/raft/store.go:258–262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

256}
257
258func (ds *DataStore) GetDataStoreSnapshot() ([]byte, error) {
259 ds.mu.RLock()
260 defer ds.mu.RUnlock()
261 return json.Marshal(ds.kvs)
262}
263
264func (ds *DataStore) Close() {
265 if ds.wal != nil {

Callers 1

triggerSnapshotIfNeedMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected