tarantool/tarantool

Provide careful validation for box.schema.space.create() arguments

Open

#5,636 opened on Dec 17, 2020

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Lua (406 forks)batch import
featuregood first issueverbosity

Repository metrics

Stars
 (3,633 stars)
PR merge metrics
 (Avg merge 13d 2h) (82 merged PRs in 30d)

Description

Now only memtx spaces can be temporary. Support of vinyl temporary spaces should be added in scope of #1785. However, now it is possible specify vinyl engine alongside with 'temporary' option:

box.schema.space.create('temp', {temporary=true}, {engine = 'vinyl'})
---
- engine: memtx
...

As one can see, vinyl engine is ignored and created space anyway uses memtx. I suggest to raise an error in this case in order to avoid misunderstanding.

Contributor guide