mirror of
https://github.com/restic/restic.git
synced 2025-08-12 11:47:43 +00:00
Adjust comments to match name of exported methods
This commit is contained in:
@@ -394,7 +394,7 @@ func (idx *Index) Finalize() {
|
||||
idx.packIDToIndex = nil
|
||||
}
|
||||
|
||||
// ID returns the IDs of the index, if available. If the index is not yet
|
||||
// IDs returns the IDs of the index, if available. If the index is not yet
|
||||
// finalized, an error is returned.
|
||||
func (idx *Index) IDs() (restic.IDs, error) {
|
||||
idx.m.Lock()
|
||||
|
@@ -134,7 +134,7 @@ func (mi *MasterIndex) Insert(idx *Index) {
|
||||
mi.idx = append(mi.idx, idx)
|
||||
}
|
||||
|
||||
// Store remembers the id and pack in the index.
|
||||
// StorePack remembers the id and pack in the index.
|
||||
func (mi *MasterIndex) StorePack(id restic.ID, blobs []restic.Blob) {
|
||||
mi.idxMutex.Lock()
|
||||
defer mi.idxMutex.Unlock()
|
||||
|
@@ -47,6 +47,8 @@ func New(be restic.Backend) *Repository {
|
||||
return repo
|
||||
}
|
||||
|
||||
// DisableAutoIndexUpdate deactives the automatic finalization and upload of new
|
||||
// indexes once these are full
|
||||
func (r *Repository) DisableAutoIndexUpdate() {
|
||||
r.noAutoIndexUpdate = true
|
||||
}
|
||||
|
Reference in New Issue
Block a user