io_engine

package
v0.0.0-...-c2c101f Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GcMapCache

type GcMapCache struct {
	Meta    *meta.Meta
	TreeMgr *GcMapTreeMgr
	// contains filtered or unexported fields
}

func NewGcMapCache

func NewGcMapCache(threadNum int, replicaNodeCount int, threadChanSize int, meta *meta.Meta) (*GcMapCache, error)

func (*GcMapCache) CheckSeg

func (gc *GcMapCache) CheckSeg(ctx context.Context, blocks []*types.FileBlockInfo) (updatedBlocks []*types.FileBlockInfo, err error)

func (*GcMapCache) Run

func (gc *GcMapCache) Run() (err error)

func (*GcMapCache) Stop

func (gc *GcMapCache) Stop()

func (*GcMapCache) SyncGcMap

func (gc *GcMapCache) SyncGcMap(ctx context.Context, req *types.GetGcMapReq) (isNeedCheck bool, err error)

type GcMapTreeMgr

type GcMapTreeMgr struct {
	// contains filtered or unexported fields
}

func NewGcMapTreeMgr

func NewGcMapTreeMgr(threadNum int, replicaNodeCount int, threadChanSize int, wg *sync.WaitGroup) (*GcMapTreeMgr, error)

func (*GcMapTreeMgr) CheckGcMapTree

func (gt *GcMapTreeMgr) CheckGcMapTree(ctx context.Context, req interface{}, thrKey *types.FileSegment) (updatedBlocks []*types.FileBlockInfo, err error)

func (*GcMapTreeMgr) DeleteGcMapTree

func (gt *GcMapTreeMgr) DeleteGcMapTree(ctx context.Context, req interface{}, thrKey *types.FileSegment) (err error)

func (*GcMapTreeMgr) InsertOrUpdateGcMapTree

func (gt *GcMapTreeMgr) InsertOrUpdateGcMapTree(ctx context.Context, req interface{}, thrKey *types.FileSegment) (err error)

func (*GcMapTreeMgr) Stop

func (gt *GcMapTreeMgr) Stop()

type GcMapTreeTask

type GcMapTreeTask struct {
	// contains filtered or unexported fields
}

type GcMapTreeThreadPool

type GcMapTreeThreadPool struct {
	// contains filtered or unexported fields
}

type GcMapTreeWorker

type GcMapTreeWorker struct {
	// contains filtered or unexported fields
}

type Task

type Task struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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