call memory's pop to free cache's current level
This commit is contained in:
parent
e064ec40de
commit
b8cbccb113
@ -91,6 +91,9 @@ func (c *Cmd) execReset(ctx context.Context, ss storage.StorageService) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
ca := pe.GetMemory()
|
||||
ca.Pop()
|
||||
|
||||
_, err = en.(*engine.DefaultEngine).Reset(ctx, false)
|
||||
if err != nil {
|
||||
return err
|
||||
@ -192,6 +195,5 @@ func (c *Cmd) Parse(args []string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
return fmt.Errorf("unknown subcommand: %s", cmd)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user