// Fork creates a new KVStore instance.
Fork creates a new KVStore instance.
// Fork creates a new KVStore instance .
func (k *KVStore) Fork(c *storage.Config) (storage.Engine, error) {
	if c == nil {
		c = k.config.Copy()
	}
	size, err := c.Get("tableSize")
	if err != nil {
		return nil, err
	}
	child := &KVStore{
		config: c,
	}
	t := table.New(size.(uint32))
	child.tables = append(child.tables, t)
	return child, nil
}
func ( k * KVStore ) Fork ( c * storage . Config ) ( storage . Engine , error ) { if c == nil { c = k . config . Copy ( ) } size , err := c . Get ( " " ) if err != nil { return nil , err } child := & KVStore { config : c , } t := table . New ( size . ( uint32 ) ) child . tables = append ( child . tables , t ) return child , nil }
Fork creates a new KVStore instance.
Fork creates a new KVStore instance .