From c0076a788e078d96b716cc15267c4b4bed797b44 Mon Sep 17 00:00:00 2001 From: MR_G <2044783677@qq.com> Date: Sat, 22 Jun 2024 00:17:13 +0800 Subject: [PATCH] mvcc: fix typo Signed-off-by: MR_G <2044783677@qq.com> --- server/storage/mvcc/store.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/storage/mvcc/store.go b/server/storage/mvcc/store.go index d935c7394..523b8cd8f 100644 --- a/server/storage/mvcc/store.go +++ b/server/storage/mvcc/store.go @@ -19,7 +19,7 @@ import ( "go.etcd.io/etcd/server/v3/storage/schema" ) -func UnsafeReadFinishedCompact(tx backend.UnsafeReader) (finishedComact int64, found bool) { +func UnsafeReadFinishedCompact(tx backend.UnsafeReader) (int64, bool) { _, finishedCompactBytes := tx.UnsafeRange(schema.Meta, schema.FinishedCompactKeyName, nil, 0) if len(finishedCompactBytes) != 0 { return BytesToRev(finishedCompactBytes[0]).Main, true @@ -27,7 +27,7 @@ func UnsafeReadFinishedCompact(tx backend.UnsafeReader) (finishedComact int64, f return 0, false } -func UnsafeReadScheduledCompact(tx backend.UnsafeReader) (scheduledComact int64, found bool) { +func UnsafeReadScheduledCompact(tx backend.UnsafeReader) (int64, bool) { _, scheduledCompactBytes := tx.UnsafeRange(schema.Meta, schema.ScheduledCompactKeyName, nil, 0) if len(scheduledCompactBytes) != 0 { return BytesToRev(scheduledCompactBytes[0]).Main, true