chore(general): fix function names in comment (#3786)

Signed-off-by: lvyaoting <lvyaoting@outlook.com>
This commit is contained in:
lvyaoting
2024-04-08 12:33:33 +08:00
committed by GitHub
parent db5d868b5f
commit 67f87a5450
5 changed files with 5 additions and 5 deletions

View File

@@ -6,7 +6,7 @@
"github.com/kopia/kopia/repo/blob"
)
// shouldAdvanceEpoch determines if the current epoch should be advanced based on set of blobs in it.
// shouldAdvance determines if the current epoch should be advanced based on set of blobs in it.
//
// Epoch will be advanced if it's been more than 'minEpochDuration' between earliest and
// most recent write AND at least one of the criteria has been met:

View File

@@ -32,7 +32,7 @@ func epochNumberFromBlobID(blobID blob.ID) (int, bool) {
return n, true
}
// epochNumberFromBlobID extracts the range epoch numbers from a string formatted as
// epochRangeFromBlobID extracts the range epoch numbers from a string formatted as
// <prefix><epochNumber>_<epochNumber2>_<remainder>.
func epochRangeFromBlobID(blobID blob.ID) (min, max int, ok bool) {
parts := strings.Split(string(blobID), "_")

View File

@@ -531,7 +531,7 @@ func runFullMaintenance(ctx context.Context, runParams RunParameters, safety Saf
return nil
}
// shouldRewriteContents returns true if it's currently ok to rewrite contents.
// shouldQuickRewriteContents returns true if it's currently ok to rewrite contents.
// since each content rewrite will require deleting of orphaned blobs after some time passes,
// we don't want to starve blob deletion by constantly doing rewrites.
func shouldQuickRewriteContents(s *Schedule, safety SafetyParameters) bool {

View File

@@ -700,7 +700,7 @@ func (rdc *repoDirEntryCache) getRepoDirEntry(t *testing.T, rop string) *snapsho
return nil
}
// validateXattr checks that shallowrestore absolute path srp has placeholder
// validatePlaceholder checks that shallowrestore absolute path srp has placeholder
// DirEntry value equal to the in-repository DirEntry for rootid/rop.
func (rdc *repoDirEntryCache) validatePlaceholder(t *testing.T, rop, srp string) {
t.Helper()

View File

@@ -93,7 +93,7 @@ func (ki *kopiaConnector) initFilesystem(repoPath string) error {
return ki.snap.ConnectOrCreateFilesystem(repoPath)
}
// initS3WithServerFn initializes server mode with an S3 repository.
// initS3WithServer initializes server mode with an S3 repository.
func (ki *kopiaConnector) initS3WithServer(repoPath, bucketName, addr string) error {
cmd, fingerprint, err := ki.snap.ConnectOrCreateS3WithServer(addr, bucketName, repoPath)
ki.serverCmd = cmd