// PutRaw sets the raw value for the given key.
PutRaw sets the raw value for the given key.
// PutRaw sets the raw value for the given key .
func (k *KVStore) PutRaw(hkey uint64, value []byte) error {
	if len(k.tables) == 0 {
		if err := k.makeTable(); err != nil {
			return err
		}
	}
	for {
		t := k.tables[len(k.tables)-1]
		err := t.PutRaw(hkey, value)
		if errors.Is(err, table.ErrNotEnoughSpace) {
			err := k.makeTable()
			if err != nil {
				return err
			}
			continue
		}
		if err != nil {
			return err
		}
		break
	}
	return nil
}
func ( k * KVStore ) PutRaw ( hkey uint64 , value [ ] byte ) error { if len ( k . tables ) == 0 { if err := k . makeTable ( ) ; err != nil { return err } } for { t := k . tables [ len ( k . tables ) - 1 ] err := t . PutRaw ( hkey , value ) if errors . Is ( err , table . ErrNotEnoughSpace ) { err := k . makeTable ( ) if err != nil { return err } continue } if err != nil { return err } break } return nil }
PutRaw sets the raw value for the given key.
PutRaw sets the raw value for the given key .
// Get the last value, storage only calls Put on the last created table. // try again // everything is ok