Imaplement blueprint 'memcached-separate-port'.
Blueprint 'Make memcached protocol an alternative, not a replacement': Blueprint was implemented. Memcached now can work in presence of RELOAD CONFIGURATION statement, even if it changes a replica to master or a master to replica. 'memcached' configuration file option was removed. Instead, two new optinos were added: - memcached_port - optional, default 0, if set, specifies which port speaks memcached protocol. - memcached_expire, boolean, which defines whether or not we run expire on memcached namespace. If not set, we simply support the protocol, but ignore TTL and never expire the keys. Original memcached test was ported to tarantool testing environment. cas test was disabled, because tarantool has a non-critical bug (in concurrent environment cas operation can return 'SERVER_ERROR' instead of 'EXISTS')
Showing
- cfg/tarantool_box_cfg.c 52 additions, 15 deletionscfg/tarantool_box_cfg.c
- cfg/tarantool_box_cfg.cfg 5 additions, 2 deletionscfg/tarantool_box_cfg.cfg
- cfg/tarantool_box_cfg.h 5 additions, 2 deletionscfg/tarantool_box_cfg.h
- core/stat.m 2 additions, 2 deletionscore/stat.m
- core/util.m 20 additions, 0 deletionscore/util.m
- include/stat.h 1 addition, 1 deletioninclude/stat.h
- include/util.h 6 additions, 2 deletionsinclude/util.h
- mod/box/box.h 7 additions, 11 deletionsmod/box/box.h
- mod/box/box.m 252 additions, 189 deletionsmod/box/box.m
- mod/box/box_cfg.cfg_tmpl 4 additions, 2 deletionsmod/box/box_cfg.cfg_tmpl
- mod/box/index.h 13 additions, 6 deletionsmod/box/index.h
- mod/box/index.m 45 additions, 7 deletionsmod/box/index.m
- mod/box/memcached.h 47 additions, 0 deletionsmod/box/memcached.h
- mod/box/memcached.m 115 additions, 12 deletionsmod/box/memcached.m
- test/box/show.result 2 additions, 1 deletiontest/box/show.result
- test/box_memcached/binary-get.result 40 additions, 0 deletionstest/box_memcached/binary-get.result
- test/box_memcached/binary-get.test 16 additions, 0 deletionstest/box_memcached/binary-get.test
- test/box_memcached/bogus-commands.result 3 additions, 0 deletionstest/box_memcached/bogus-commands.result
- test/box_memcached/bogus-commands.test 2 additions, 0 deletionstest/box_memcached/bogus-commands.test
- test/box_memcached/cas.result 120 additions, 0 deletionstest/box_memcached/cas.result
Loading
Please register or sign in to comment