Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
 Add a UnsafeReadScheduledCompact and UnsafeReadFinishedCompact

Signed-off-by: caojiamingalan <alan.c.19971111@gmail.com>
  • Loading branch information
CaojiamingAlan committed Jul 17, 2023
1 parent dd78032 commit 5c7e802
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/mvcc/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func UnsafeReadFinishedCompact(tx backend.ReadTx) (finishedCompact int64, found
if len(finishedCompactBytes) != 0 {
return bytesToRev(finishedCompactBytes[0]).main, true
}

return 0, false
}

Expand Down

0 comments on commit 5c7e802

Please sign in to comment.