Skip to content

Commit

Permalink
Declared missing methods from QDB
Browse files Browse the repository at this point in the history
  • Loading branch information
EinKrebs committed Mar 29, 2024
1 parent 7e950bc commit 553548c
Showing 1 changed file with 24 additions and 2 deletions.
26 changes: 24 additions & 2 deletions qdb/memqdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ import (
)

type MemQDB struct {
// TODO implement those methods
ShardingSchemaKeeper
// TODO create more mutex per map if needed
mu sync.RWMutex
muDeletedKrs sync.RWMutex
Expand Down Expand Up @@ -123,6 +121,30 @@ func (q *MemQDB) DumpState() error {
return nil
}

// ==============================================================================
// KEY RANGE MOVES
// ==============================================================================

func (q *MemQDB) RecordKeyRangeMove(ctx context.Context, m *MoveKeyRange) error {
// TODO implement
return nil
}

func (q *MemQDB) ListKeyRangeMoves(ctx context.Context) ([]*MoveKeyRange, error) {
// TODO implement
return nil, nil
}

func (q *MemQDB) UpdateKeyRangeMoveStatus(ctx context.Context, moveId string, s MoveKeyRangeStatus) error {
// TODO implement
return nil
}

func (q *MemQDB) DeleteKeyRangeMove(ctx context.Context, moveId string) error {
// TODO implement
return nil
}

// ==============================================================================
// KEY RANGES
// ==============================================================================
Expand Down

0 comments on commit 553548c

Please sign in to comment.