migration

package
v1.17.4-rc3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2023 License: BSD-3-Clause Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterInitSteps added in v1.17.4

func AfterInitSteps(
	sharkyPath string,
	sharkyNoOfShards int,
	chunkStore storage.ChunkStore,
) migration.Steps

AfterInitSteps lists all migration steps for localstore IndexStore after the localstore is intiated.

func BeforeIinitSteps added in v1.17.4

func BeforeIinitSteps() migration.Steps

BeforeIinitSteps lists all migration steps for localstore IndexStore before the localstore is intiated.

func RefCountSizeInc added in v1.17.4

func RefCountSizeInc(s storage.BatchedStore) error

Types

type OldRetrievalIndexItem added in v1.17.4

type OldRetrievalIndexItem struct {
	Address   swarm.Address
	Timestamp uint64
	Location  sharky.Location
	RefCnt    uint8
}

OldRetrievalIndexItem is the index which gives us the sharky location from the swarm.Address. The RefCnt stores the reference of each time a Put operation is issued on this Address.

func (*OldRetrievalIndexItem) Clone added in v1.17.4

func (r *OldRetrievalIndexItem) Clone() storage.Item

func (*OldRetrievalIndexItem) ID added in v1.17.4

func (r *OldRetrievalIndexItem) ID() string

func (*OldRetrievalIndexItem) Marshal added in v1.17.4

func (r *OldRetrievalIndexItem) Marshal() ([]byte, error)

Stored in bytes as: |--Address(32)--|--Timestamp(8)--|--Location(7)--|--RefCnt(1)--|

func (OldRetrievalIndexItem) Namespace added in v1.17.4

func (OldRetrievalIndexItem) Namespace() string

func (OldRetrievalIndexItem) String added in v1.17.4

func (r OldRetrievalIndexItem) String() string

func (*OldRetrievalIndexItem) Unmarshal added in v1.17.4

func (r *OldRetrievalIndexItem) Unmarshal(buf []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL