Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Commit

Permalink
added MemDB() (#1059)
Browse files Browse the repository at this point in the history
  • Loading branch information
Giulio2002 authored and AskAlexSharov committed Sep 6, 2023
1 parent 817ebd8 commit d49e720
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions kv/memdb/memory_mutation.go
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,14 @@ func isTablePurelyDupsort(bucket string) bool {
return !config.AutoDupSortKeysConversion && config.Flags == kv.DupSort
}

func (m *MemoryMutation) MemDB() kv.RwDB {
return m.memDb
}

func (m *MemoryMutation) MemTx() kv.RwTx {
return m.memTx
}

// Cursor creates a new cursor (the real fun begins here)
func (m *MemoryMutation) makeCursor(bucket string) (kv.RwCursorDupSort, error) {
c := &memoryMutationCursor{}
Expand Down

0 comments on commit d49e720

Please sign in to comment.