Description
moxi does not return error when flush is disabled
[root@localhost bin]# ./cbflushctl 10.3.121.110:11210 set flushall_enabled false
setting flush param: flushall_enabled false
[root@localhost bin]# telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
flsuh
ERROR
flush_all
OK
quit
[root@localhost bin]# ./cbstats localhost:11210 all | grep curr_items:
curr_items: 5000
vb_active_curr_items: 5000
vb_pending_curr_items: 0
vb_replica_curr_items: 5000
[root@localhost bin]#
now after enabling flush :
[root@localhost bin]# ./cbflushctl 10.3.121.110:11210 set flushall_enabled true
setting flush param: flushall_enabled true
[root@localhost bin]# ./cbflushctl localhost:11210 set flushall_enabled true
setting flush param: flushall_enabled true
[root@localhost bin]# telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
flush_all
OK
quit
Connection closed by foreign host.
[root@localhost bin]# ./cbstats localhost:11210 all | grep curr_items:
curr_items: 0
vb_active_curr_items: 0
vb_pending_curr_items: 0
vb_replica_curr_items: 0