mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
Add comments
This commit is contained in:
parent
dc2c1aedcc
commit
85bfab612c
|
@ -169,6 +169,7 @@ func (cm *CompactMap) binarySearchCompactSection(key Key) int {
|
||||||
return -3
|
return -3
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Visit visits all entries or stop if any error when visiting
|
||||||
func (cm *CompactMap) Visit(visit func(NeedleValue) error) error {
|
func (cm *CompactMap) Visit(visit func(NeedleValue) error) error {
|
||||||
for _, cs := range cm.list {
|
for _, cs := range cm.list {
|
||||||
for _, v := range cs.overflow {
|
for _, v := range cs.overflow {
|
||||||
|
|
Loading…
Reference in a new issue