etcd/server
Marek Siarkowicz a2e9dc8cc0 Don't redeclare err and snapshot variable, fixing validation of consistent index and closing database on defer
`err` variable shared throughout the NewServer function and used on line
396 to defer decision whether backend should be closed when starting
the server failed.

`snapshot` variable is first defined 407, redeclared locally on line 496 and later
again used on line 625. Creation of local variable is a bug introduced
in https://github.com/etcd-io/etcd/pull/11888.

Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
2023-12-20 11:31:47 +01:00
..
auth Backport #13577 2023-07-14 12:50:21 +08:00
config server: Make corrtuption check optional and period configurable 2022-09-07 15:11:56 +02:00
datadir Create 'datadir' package responsible for paths. 2021-04-28 07:56:13 +02:00
embed Merge pull request #17000 from siyuanfoundation/livez-bp-3.5-step1 2023-11-27 19:59:40 +01:00
etcdmain Merge pull request #17000 from siyuanfoundation/livez-bp-3.5-step1 2023-11-27 19:59:40 +01:00
etcdserver Don't redeclare err and snapshot variable, fixing validation of consistent index and closing database on defer 2023-12-20 11:31:47 +01:00
lease server: disable redirects in peer communication 2023-12-05 10:59:25 -08:00
mock Migrate dependencies pkg/foo -> client/pkg/foo 2021-04-07 00:38:47 +02:00
mvcc [3.5] backport health check e2e tests. 2023-12-07 09:51:39 -08:00
proxy etcdserver: add livez and ready http endpoints for etcd. 2023-11-27 12:52:15 -08:00
storage/mvcc/testutil tests: Move CorruptBBolt to testutil 2022-09-07 15:11:55 +02:00
verify fix the data inconsistency issue by adding a txPostLockHook into the backend 2022-04-08 20:37:34 +08:00
wal Backport go_srcs_in_module changes and fix goword failures. 2023-02-24 22:01:41 +13:00
go.mod version: bump up to 3.5.11 2023-12-07 11:29:12 +01:00
go.sum CVE-2023-47108: Backport go.opentelemetry.io/otel@v1.20.0 and go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc@v0.46.0 2023-11-15 14:09:07 +01:00
LICENSE server: Update go.mod 2020-10-26 13:02:32 +01:00
main_test.go server: Update go.mod 2020-10-26 13:02:32 +01:00
main.go Formatted source code for go 1.19.6. 2023-02-20 21:33:59 +13:00