mirror of
https://github.com/kopia/kopia.git
synced 2026-05-12 00:39:03 -04:00
chore(general): fix function names in comment (#3786)
Signed-off-by: lvyaoting <lvyaoting@outlook.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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), "_")
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user