mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-22 02:48:59 +00:00
lib/db: Correct function name in comments (#9520)
This commit is contained in:
parent
f2d6722348
commit
57d399317e
@ -64,7 +64,7 @@ func OpenLevelDBRO(location string) (Backend, error) {
|
|||||||
return newLeveldbBackend(ldb, location), nil
|
return newLeveldbBackend(ldb, location), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// OpenMemory returns a new Backend referencing an in-memory database.
|
// OpenLevelDBMemory returns a new Backend referencing an in-memory database.
|
||||||
func OpenLevelDBMemory() Backend {
|
func OpenLevelDBMemory() Backend {
|
||||||
ldb, _ := leveldb.Open(storage.NewMemStorage(), nil)
|
ldb, _ := leveldb.Open(storage.NewMemStorage(), nil)
|
||||||
return newLeveldbBackend(ldb, "")
|
return newLeveldbBackend(ldb, "")
|
||||||
|
@ -143,7 +143,7 @@ func NewFolderStatisticsNamespace(db backend.Backend, folder string) *Namespaced
|
|||||||
return NewNamespacedKV(db, string(KeyTypeFolderStatistic)+folder)
|
return NewNamespacedKV(db, string(KeyTypeFolderStatistic)+folder)
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewMiscDateNamespace creates a KV namespace for miscellaneous metadata.
|
// NewMiscDataNamespace creates a KV namespace for miscellaneous metadata.
|
||||||
func NewMiscDataNamespace(db backend.Backend) *NamespacedKV {
|
func NewMiscDataNamespace(db backend.Backend) *NamespacedKV {
|
||||||
return NewNamespacedKV(db, string(KeyTypeMiscData))
|
return NewNamespacedKV(db, string(KeyTypeMiscData))
|
||||||
}
|
}
|
||||||
|
@ -388,7 +388,7 @@ func (vl *VersionList) findGlobal() int {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
// findDevices returns whether the device is in InvalidVersions or Versions and
|
// findDevice returns whether the device is in InvalidVersions or Versions and
|
||||||
// in InvalidDevices or Devices (true for invalid), the positions in the version
|
// in InvalidDevices or Devices (true for invalid), the positions in the version
|
||||||
// and device slices and whether it has been found at all.
|
// and device slices and whether it has been found at all.
|
||||||
func (vl *VersionList) findDevice(device []byte) (bool, int, int, bool) {
|
func (vl *VersionList) findDevice(device []byte) (bool, int, int, bool) {
|
||||||
|
Loading…
Reference in New Issue
Block a user