-
Notifications
You must be signed in to change notification settings - Fork 9
Unclear error when memcached instance created without box initialization #76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
ligurio
added a commit
that referenced
this issue
Jan 14, 2022
memcached shows unclear error when memcached instance created without box initialization: ``` tarantool> mc = require('memcached') tarantool> mc.create('instance', '127.0.0.1:8080', { proto = 'text'}) --- - error: '/home/sergeyb/sources/MRG/memcached/memcached/init.lua:111: attempt to index field ''cfg'' (a function value)' ... ``` With patch memcached checks whether box is initialized or not and shows a correct message: tarantool> mc.create('instance', '127.0.0.1:8080', { proto = 'text'}) --- - error: '/home/sergeyb/sources/MRG/memcached/memcached/init.lua:344: Tarantool must be initialized with box.cfg()' ... Fixes #76
ligurio
added a commit
that referenced
this issue
Jan 14, 2022
memcached shows unclear error when memcached instance created without box initialization: ``` tarantool> mc = require('memcached') tarantool> mc.create('instance', '127.0.0.1:8080', { proto = 'text'}) --- - error: '/home/sergeyb/sources/MRG/memcached/memcached/init.lua:111: attempt to index field ''cfg'' (a function value)' ... ``` With patch memcached checks whether box is initialized or not and shows a correct message: ``` tarantool> mc.create('instance', '127.0.0.1:8080', { proto = 'text'}) --- - error: '/home/sergeyb/sources/MRG/memcached/memcached/init.lua:344: Tarantool must be initialized with box.cfg()' ... ``` Fixes #76
ligurio
added a commit
that referenced
this issue
Jan 25, 2022
memcached shows unclear error when memcached instance created without box initialization: ``` tarantool> mc = require('memcached') tarantool> mc.create('instance', '127.0.0.1:8080', { proto = 'text'}) --- - error: '/home/sergeyb/sources/MRG/memcached/memcached/init.lua:111: attempt to index field ''cfg'' (a function value)' ... ``` With patch memcached checks whether box is initialized or not and shows a correct message: ``` tarantool> mc.create('instance', '127.0.0.1:8080', { proto = 'text'}) --- - error: '/home/sergeyb/sources/MRG/memcached/memcached/init.lua:344: Please call box.cfg{} first' ... ``` Fixes #76
ligurio
added a commit
that referenced
this issue
Jan 25, 2022
memcached shows unclear error when memcached instance created without box initialization: ``` tarantool> mc = require('memcached') tarantool> mc.create('instance', '127.0.0.1:8080', { proto = 'text'}) --- - error: '/home/sergeyb/sources/MRG/memcached/memcached/init.lua:111: attempt to index field ''cfg'' (a function value)' ... ``` With patch memcached checks whether box is initialized or not and shows a correct message: ``` tarantool> mc.create('instance', '127.0.0.1:8080', { proto = 'text'}) --- - error: '/home/sergeyb/sources/MRG/memcached/memcached/init.lua:344: Please call box.cfg{} first' ... ``` Fixes #76
ligurio
added a commit
that referenced
this issue
Feb 1, 2022
memcached shows unclear error when memcached instance created without box initialization: ``` tarantool> mc = require('memcached') tarantool> mc.create('instance', '127.0.0.1:8080', { proto = 'text'}) --- - error: '/home/sergeyb/sources/MRG/memcached/memcached/init.lua:111: attempt to index field ''cfg'' (a function value)' ... ``` With patch memcached checks whether box is initialized or not and shows a correct message: ``` tarantool> mc.create('instance', '127.0.0.1:8080', { proto = 'text'}) --- - error: '/home/sergeyb/sources/MRG/memcached/memcached/init.lua:344: Please call box.cfg{} first' ... ``` Fixes #76
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
memcached/init.lua:
Version: 617478d
The text was updated successfully, but these errors were encountered: