https://github.com/etcd-io/etcd
Revision 865df75714df9a9cf2c27b99a69fb90033483084 authored by Piotr Tabor on 13 May 2021, 10:37:43 UTC, committed by Piotr Tabor on 13 May 2021, 12:29:36 UTC
This makes (bbolt) backend a full feature snapshot in term of WAL/raft,
i.e. carries:
  - commit : (applied_index)
  - confState

Benefits:
  - Backend will be a sufficient point in time definition sufficient to
start replaying WAL. We have applied_index & confState in consistent
state.
  - In case of emergency a backend state can be used for recovery
1 parent 3cb1ba4
Raw File
Tip revision: 865df75714df9a9cf2c27b99a69fb90033483084 authored by Piotr Tabor on 13 May 2021, 10:37:43 UTC
Save raftpb.ConfState in the backend.
Tip revision: 865df75
dummy.go
// Copyright 2016 The etcd Authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

package main_test

// MainTest package makes sure these packages stay as dependencies of the root
// module (e.g. for sake of 'bom' generation).
// Thanks to this 'go mod tidy' is not removing that dependencies from go.mod.
import (
	_ "go.etcd.io/etcd/client/v2"            // keep
	_ "go.etcd.io/etcd/tests/v3/integration" // keep
)
back to top