Commit Graph

260 Commits

Author SHA1 Message Date
siddontang 218700ce44 repo conf command should check replication ok 2015-02-14 14:40:58 +08:00
siddontang 1760e9fe20 fix replication test error 2015-02-14 09:45:07 +08:00
siddontang fde91d588a fix can not close slave if master is down 2015-02-14 09:25:21 +08:00
siddontang 3cd534aefb fix slave role err, ip and port must be master 2015-02-14 09:25:01 +08:00
siddontang 87cbf6cefc adjust replication state set 2015-02-11 10:13:21 +08:00
siddontang cbbec9d625 slave support reconnecting 2015-02-11 09:55:34 +08:00
siddontang 92811d8ea1 add some redis compatibility info replication msgs 2015-02-10 13:42:34 +08:00
siddontang b94a604f7a add kv bit operation support
old bitmap type will be deprecated later
2015-02-05 15:37:17 +08:00
siddontang 1540f81e68 add some kv command
setrange, getrange, strlen, append
2015-02-05 09:50:40 +08:00
siddontang b5c78640aa support sort command 2015-02-04 14:09:05 +08:00
siddontang fb9d8cc527 add role command 2015-02-03 14:15:30 +08:00
siddontang e569e0c553 panic add more information 2015-02-03 14:15:11 +08:00
siddontang 84002e0499 remove confused command coroutine
may degrade some performance, but I think people can understand this
code easily
2015-02-03 14:14:46 +08:00
wenyekui 5863e52ded add xsexists and xzexists commands 2015-02-01 17:54:52 +08:00
wenyekui 52cad4ab31 add XLExists cmd 2015-02-01 17:41:28 +08:00
wenyekui 83c4db020c add xhexists cmd 2015-02-01 17:19:46 +08:00
siddontang 31fc7f0375 x must be the prefix for scan, for #121 2015-01-24 11:07:26 +08:00
siddontang 053da7736c Use new log interface 2015-01-12 10:32:03 +08:00
siddontang 8c75a693f4 fix http panic error 2014-12-26 10:08:37 +08:00
siddontang 3055e6b2fc add xmigrate
xmigrate will be used in xcodis
2014-12-03 16:27:52 +08:00
siddontang 07e3705b22 add migrate command, improved later 2014-12-01 17:50:48 +08:00
siddontang 026a72b58e Merge branch 'copy-bugfix' into develop 2014-11-27 20:51:21 +08:00
siddontang 4bdbdb7697 add dump and restore support 2014-11-27 14:03:44 +08:00
siddontang 6f39cb17a9 close gracefully
wait all resp-client connections closed
2014-11-11 15:21:41 +08:00
siddontang f0475b635e client perform use coroutine
hope improving performance
2014-11-10 13:09:37 +08:00
siddontang 7b5d950cc9 fix go test race error 2014-11-01 23:28:34 +08:00
siddontang 0009fe83b9 add put and delete info back 2014-10-31 20:33:38 +08:00
siddontang 4668350862 update store statistic 2014-10-30 16:06:44 +08:00
siddontang 44e93ba921 optimize codes 2014-10-30 12:48:52 +08:00
siddontang d0bd0c17db update info gc 2014-10-30 11:21:09 +08:00
siddontang b9b60f19ad add conn keep alive check and bug fix 2014-10-30 11:11:45 +08:00
siddontang 89c58e45ca add detailed men and gc info 2014-10-30 10:51:02 +08:00
siddontang fcc8c9ae37 use goroutine for reap handling 2014-10-30 09:03:58 +08:00
siddontang 796f4b3af2 use arena to reduce object create 2014-10-30 00:01:19 +08:00
siddontang 4c19e40159 add GetSlice, hope can improve get performance 2014-10-29 20:17:12 +08:00
siddontang 4a7b57d30e add reap protocol benchmark 2014-10-29 09:11:22 +08:00
siddontang fdeda83a37 update protocol handling 2014-10-28 17:58:37 +08:00
holys c7dfec509b add SETEX command for KV 2014-10-26 15:15:43 +08:00
siddontang 53072735f6 add conn buffer config 2014-10-25 14:48:52 +08:00
siddontang 688d697bb7 use 4096 for connection read buffer 2014-10-24 20:39:29 +08:00
siddontang e3765035ce reduce replication code 2014-10-23 13:34:27 +08:00
siddontang 041a1737c8 update replication 2014-10-22 20:54:37 +08:00
siddontang 9b58e105b2 update replication 2014-10-22 09:11:14 +08:00
siddontang e92dd80442 update replication 2014-10-21 22:51:17 +08:00
siddontang c3824552b6 add replconf for replication 2014-10-21 17:35:03 +08:00
siddontang f09e43ad99 add rev scan support 2014-10-20 22:36:16 +08:00
siddontang f715de3561 list block pop support milliseconds timeout 2014-10-17 11:41:05 +08:00
siddontang 7dd3a5381d update list block pop 2014-10-17 09:55:43 +08:00
siddontang 4a9c0dec4f update info stat 2014-10-16 09:45:48 +08:00
siddontang 028b9fbd55 info update and add store stat 2014-10-15 10:41:43 +08:00
siddontang f05398cdf9 store add stat 2014-10-15 10:18:20 +08:00
siddontang 4adf3e8996 add some replication info 2014-10-13 14:37:31 +08:00
siddontang f907234638 optimize fullsync 2014-10-11 17:44:31 +08:00
siddontang 4a1c74cb44 adjust config 2014-10-11 16:00:59 +08:00
siddontang 1583ae90fc update snapshot 2014-10-11 10:14:23 +08:00
siddontang 36f015268f update snapshot 2014-10-10 22:45:22 +08:00
siddontang 180091e10f add snapshot store 2014-10-10 17:57:18 +08:00
siddontang 855f0a3477 add readonly support 2014-10-10 09:49:16 +08:00
siddontang 884de89cb8 replication add log 2014-10-09 11:47:14 +08:00
siddontang 45a4dd1abc info log id returns 0 if no replication 2014-10-09 11:03:58 +08:00
siddontang 771d32c879 bugfix for info command 2014-10-09 10:47:21 +08:00
siddontang 53f89f671b add config rewrite command 2014-10-08 16:39:14 +08:00
siddontang fefc39c429 add time command 2014-10-08 13:55:46 +08:00
siddontang 4d974a0db7 add wait max slave acks config 2014-10-05 17:24:44 +08:00
siddontang 3f93676d4d flushall will restart replication if possible 2014-10-03 20:31:24 +08:00
siddontang d675556cb4 support zset lex commands 2014-10-01 23:26:46 +08:00
siddontang 2a3fca829e update slaveof command, wait (n + 1) /2 replies 2014-09-28 21:34:24 +08:00
siddontang 7df7af8b54 client rollback tx when close 2014-09-27 20:11:36 +08:00
siddontang f49a3bbece add compression for log 2014-09-27 10:08:45 +08:00
siddontang 05135a5ac9 move nextsynclogid to server 2014-09-25 22:33:09 +08:00
siddontang 962a087330 update slaveof and readonly 2014-09-25 16:03:29 +08:00
siddontang dca71891c3 readd transaction 2014-09-25 10:44:07 +08:00
siddontang 6d293ce152 use async notify 2014-09-24 21:31:26 +08:00
siddontang b7de9e6354 use tiny go package 2014-09-24 13:29:27 +08:00
siddontang 5bccfd13dc use tiny go package 2014-09-24 12:34:21 +08:00
siddontang 7d1f13f9d7 rename package 2014-09-24 09:46:36 +08:00
siddontang eb77615b4b rename file 2014-09-24 09:44:42 +08:00
siddontang 4bb886adff update info 2014-09-23 17:53:52 +08:00
siddontang 1a1250d949 refactor, remove bin log, add consensus replication 2014-09-23 17:28:09 +08:00
siddontang 22109ed0f1 refactor, can not run at all 2014-09-22 17:50:51 +08:00
siddontang e3bdb57be2 add DBPath and UseBinLog config 2014-09-18 22:30:33 +08:00
siddontang 2972f57436 remove DataDB 2014-09-18 22:20:18 +08:00
siddontang 0a72481eb0 mode use 0644 for file, 0755 for dir 2014-09-18 21:27:43 +08:00
siddontang f22bbb97df bugfix scan count 0 2014-09-18 09:08:18 +08:00
siddontang 39d6db56bd change open file and mkdir mode
open file use 0644
mkdir use 0755
2014-09-13 23:06:36 +08:00
siddontang 6aec5d4952 use golua directly 2014-09-13 14:11:05 +08:00
siddontang 3354399d9b move scan to scan 2014-09-09 10:02:49 +08:00
siddontang 947ec0081b remove cpu info
1, cpu info field is not cross platform
2, may use other tool to see
2014-09-07 08:44:19 +08:00
siddontang 53ff437877 update ReadBulkTo 2014-09-05 10:01:50 +08:00
siddontang c8e5e39f9d hand up for new event if no one now
do not wait 1 second
2014-09-05 10:01:38 +08:00
siddontang b6e44c3dc0 using close channel to wait new bin log 2014-09-04 23:52:09 +08:00
siddontang dad6478c12 MasterInfo rename to BinLogAnchor 2014-09-04 22:43:56 +08:00
siddontang b9ea592026 add lua build tag
maybe install golua error, and lua cannot be used
2014-09-04 16:39:23 +08:00
siddontang b4c66c7eed bugfix for script command 2014-09-03 17:00:03 +08:00
siddontang 9628817ca4 replace lua error
error may cause c stack overflow
https://github.com/aarzilli/golua/issues/24
2014-09-03 09:03:49 +08:00
siddontang d9a8da770d return lua error in eval 2014-09-03 07:49:46 +08:00
siddontang 0af4758e79 lua update 2014-09-02 22:04:18 +08:00
siddontang ab1ae62bf7 add lua support 2014-09-02 17:55:12 +08:00
siddontang 93f3cc5343 lua resp writer 2014-09-01 23:26:35 +08:00
holys 15636bc0cb refactor test, reduce code 2014-08-28 17:01:05 +08:00