call memory's pop to free cache's current level

This commit is contained in:
Carlosokumu 2025-03-27 12:31:46 +03:00
parent e064ec40de
commit b8cbccb113
Signed by: carlos
GPG Key ID: 7BD6BC8160A5C953

View File

@ -91,6 +91,9 @@ func (c *Cmd) execReset(ctx context.Context, ss storage.StorageService) error {
if err != nil { if err != nil {
return err return err
} }
ca := pe.GetMemory()
ca.Pop()
_, err = en.(*engine.DefaultEngine).Reset(ctx, false) _, err = en.(*engine.DefaultEngine).Reset(ctx, false)
if err != nil { if err != nil {
return err return err
@ -192,6 +195,5 @@ func (c *Cmd) Parse(args []string) error {
return nil return nil
} }
return fmt.Errorf("unknown subcommand: %s", cmd) return fmt.Errorf("unknown subcommand: %s", cmd)
} }