refactor data integrity checking code

This commit is contained in:
霍晓栋
2016-07-03 12:53:03 +08:00
parent 3018443cd7
commit dda13def2a
5 changed files with 55 additions and 42 deletions

View File

@@ -17,6 +17,10 @@ const (
NeedleMapBoltDb
)
const (
NeedleIndexSize = 16
)
type NeedleMapper interface {
Put(key uint64, offset uint32, size uint32) error
Get(key uint64) (element *NeedleValue, ok bool)