File: load_daemon_memcached_expecting_error.inc

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (19 lines) | stat: -rw-r--r-- 900 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Loads the daemon_memcached plugin and waits for a while
# to make sure it will not become responsive to 'stats'
#
# Example of usage:
#   # host and port on which the memcached should operate
#   # ususally host is 127.0.0.1 and
#   # port is in -master.opt file as --loose-daemon_memcached_option
#   --let $memcached_address=127.0.0.1:11227
#   --source ../include/load_daemon_memcached_expecting_error.inc

INSTALL PLUGIN daemon_memcached SONAME 'libmemcached.so';
# We use a rather small number here, not to slow down tests, yet
# 3 seconds should be enough at least on some runs to expose a
# problem when the server starts even though it should not.
# In my experience 90% of the time the plugin starts in less than
# 2 seconds, as evidenced by old vesions of code using SLEEP(2).
--let $memcached_check_attempts=3
--let $memcached_expect=error
--source ../include/check_daemon_memcached.inc