Commit Graph

258 Commits

Author SHA1 Message Date
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
siddontang 5f5b7f1ac7 add flush command
complete client command and document
2014-08-27 10:57:18 +08:00
siddontang fa6adeabee update scan support 2014-08-27 10:29:17 +08:00
siddontang cb5a61240d server add scan support 2014-08-26 23:21:54 +08:00
siddontang 9b1c6c4223 refactor 2014-08-25 14:18:23 +08:00
holys 22161f91ba Merge branch 'set-feature' into develop 2014-08-15 18:09:55 +08:00
holys eb3f420cc8 update test for ttl and bitmap 2014-08-15 15:51:58 +08:00
holys 00abaccbf2 add cmd_set commands and its tests 2014-08-15 15:51:58 +08:00
wenyekui 647790674b Merge branch 'develop' into scan-feature 2014-08-14 16:14:40 +08:00
wenyekui 34f1795a5f modify unit test 2014-08-14 16:10:07 +08:00
wenyekui 54ed8e0d38 refactor scan 2014-08-14 15:24:41 +08:00
wenyekui 4d6b42671b fix misspelling 2014-08-14 10:37:27 +08:00
wenyekui 396030a06f add unit test 2014-08-13 14:23:27 +08:00
wenyekui cb908a859c add zunionstorecommand & zinterstorecommand in server pkg 2014-08-13 11:59:43 +08:00
holys 74b0c60ece update generate.py; add command_cnf.go 2014-08-11 12:38:21 +08:00
wenyekui 693bcf32f4 change import path of bson lib 2014-08-11 10:08:41 +08:00
siddontang 5cdd6f2358 all package use same config struct
add toml support
2014-08-07 16:49:48 +08:00
wenyekui 8c9ddb72ea Delete http_interface.md 2014-08-04 14:37:06 +08:00
siddontang 7485899c17 update doc 2014-08-04 14:13:35 +08:00
wenyekui ab189ffe40 add return statement 2014-08-04 11:37:21 +08:00
wenyekui 5c3872ce68 Merge branch 'restful-feature' into develop
Conflicts:
	bootstrap.sh
	server/cmd_bit.go
	server/cmd_kv.go
	server/cmd_zset.go
2014-08-04 11:26:08 +08:00
wenyekui 6c88687ebf add quit commands 2014-08-04 11:06:28 +08:00
wenyekui 828b74e2d5 update doc.go 2014-08-04 10:47:10 +08:00
wenyekui 93761d8ff3 http interface: unsupport repl cmds 2014-08-04 10:38:43 +08:00
wenyekui 1655f48652 modify remote addr 2014-08-04 10:28:09 +08:00
wenyekui 9ad7095e2d modify accesslog format 2014-08-04 10:17:30 +08:00
wenyekui 9c5ade8ee3 add document: http_interface.md 2014-08-04 09:44:58 +08:00
wenyekui 3b89543de6 fix argument checking 2014-08-01 16:03:51 +08:00
wenyekui 6947255c22 put args into reqContext 2014-08-01 15:22:24 +08:00
wenyekui 33a2e6afb9 http interface: not support cmds of repl 2014-08-01 15:01:16 +08:00
wenyekui 95b6dd88fa ignorecase 2014-08-01 14:27:34 +08:00
wenyekui b5e5b787d6 modify argument checking 2014-08-01 14:18:07 +08:00
wenyekui 2166c6ff19 add a extra bool value when returning status 2014-08-01 11:59:16 +08:00
wenyekui a88c8c46d8 rm server/http 2014-08-01 11:43:05 +08:00
wenyekui e46554e9f6 refactor http interface 2014-08-01 11:42:16 +08:00
silentsai d0e7698984 cut async feature from request handler 2014-08-01 09:38:08 +08:00
silentsai 715e35098c seperate the behavior from client : client input , request handle 2014-07-31 18:28:19 +08:00
silentsai 14767ecadb abstract the read / write in server client 2014-07-31 14:38:20 +08:00
holys 781c18333b remove foolish code 2014-07-29 20:08:20 +08:00
holys 2f3d86cfaf Merge branch 'develop' of https://github.com/siddontang/ledisdb into develop
Conflicts:
	Makefile
2014-07-29 16:22:10 +08:00
wenyekui 895613ca5b Update readme.md 2014-07-29 15:33:35 +08:00
wenyekui d4da8fab69 Update readme.md 2014-07-29 15:31:50 +08:00
wenyekui 7ba2cc6d61 add readme 2014-07-29 15:27:43 +08:00
wenyekui f8e9308a0d cancel supporting websocket 2014-07-29 11:02:13 +08:00
wenyekui fab9d46c4d unit test of zset 2014-07-28 16:35:46 +08:00
holys d1362552c0 add more error input params tests 2014-07-28 01:58:55 +08:00
siddontang efa8e850f5 Merge branch 'storage-feature' into develop 2014-07-26 18:43:23 +08:00
siddontang e073396481 update store 2014-07-26 00:46:03 +08:00
siddontang 727286d1ac mdv update 2014-07-25 23:40:10 +08:00
siddontang 7a237661da add support for multi storage 2014-07-25 17:58:00 +08:00
wenyekui a586fa2f8f add unit tests 2014-07-25 17:27:07 +08:00
holys fe881ba03c add errer input params test for kv; fix typo for t_kv.go 2014-07-25 17:26:29 +08:00
wenyekui deb30383c6 add unit test 2014-07-25 16:17:45 +08:00
wenyekui ee690fd35c add unit test 2014-07-25 15:18:39 +08:00
wenyekui 42174ed78a unit test for cmd_hash.go 2014-07-25 11:55:56 +08:00
wenyekui c0f3c54f3b unit tests of cmd_bit 2014-07-24 17:19:44 +08:00
wenyekui 58cdace7df modify unit test 2014-07-24 15:36:25 +08:00
wenyekui ebdc1ee3ae support bson, msgpack 2014-07-24 15:06:39 +08:00
wenyekui 3f3ca8da63 modify error msg 2014-07-24 11:41:53 +08:00
wenyekui a6a760880d complete apis for the rest of cmds 2014-07-24 11:29:13 +08:00
wenyekui 0d01d7e7ed bug fix: argument checking of funtion 2014-07-23 17:10:06 +08:00
wenyekui f647c3d815 add file 2014-07-23 11:02:10 +08:00
wenyekui 1dd7d22198 add unit test 2014-07-23 10:59:37 +08:00
siddontang f95494386a update config 2014-07-23 08:30:00 +08:00
siddontang 7a763da082 change configuration
Config struct now not includes other configs, but shows all

People can see configuration clearly
2014-07-23 07:55:40 +08:00
wenyekui 43905129b8 use '[]byte()' to convert string to []byte 2014-07-22 15:43:22 +08:00
wenyekui 1513d055f5 http api of bit cmds 2014-07-22 11:31:56 +08:00
siddontang f85da1db91 add base http framework 2014-07-17 15:19:46 +08:00
holys 633ced379c fix bitmap test 2014-07-17 00:44:40 +08:00
holys 8be1cf8b54 rename Bin to Bit 2014-07-13 00:31:30 +08:00
siddontang ac5c64aab8 add MasterInfo for replication 2014-07-11 16:57:19 +08:00
siddontang a41b1ef669 refactor, bin rename to bit, rename datatype 2014-07-11 13:27:40 +08:00
siddontang 55056660e3 add ledis-dump tool 2014-07-11 10:43:42 +08:00
silentsai febe8ee93d merge branch 'bin-feature' 2014-07-08 17:10:44 +08:00
siddontang 64a4fee577 replication use snappy 2014-07-04 17:55:47 +08:00
siddontang 6adfb1be98 adjust Open interface, not backwards compatibility 2014-07-04 15:45:23 +08:00
siddontang 38f741ddb1 use go-log and adjust some param name
go-log now has a well document.
it can be used directly.

limit may cause confused, use count instead
2014-07-04 13:27:57 +08:00
siddontang 1e6bcc6a50 bugfix for revrangebyscore command
min and max score param position may be same as redis
2014-07-01 07:55:34 +08:00
siddontang e5c9ad8716 expire bug fix 2014-06-30 11:23:14 +08:00
siddontang 46d2ecda91 add hmclear, lmclear and zmclear for multi keys 2014-06-27 16:28:32 +08:00
siddontang d85d65d0f2 update doc 2014-06-25 12:57:19 +08:00
siddontang 31e70ccd02 add persist command 2014-06-24 12:44:47 +08:00
siddontang 794cb12ba4 update document 2014-06-22 21:13:57 +08:00
siddontang d45a82897f update document 2014-06-22 21:05:52 +08:00
siddontang cdb78498af ledis use proper return values not []interface{}
This is a very big change and not backward compatible
2014-06-22 15:25:51 +08:00
siddontang 594f6a5d0d use ledis client 2014-06-22 10:39:23 +08:00
siddontang 9e09e607c8 heel use iterator to multi find and delete 2014-06-20 10:12:50 +08:00
siddontang c5af770387 use my own log 2014-06-19 17:50:27 +08:00
siddontang 50bd648e0c copy garyburd redid lib to client 2014-06-19 17:46:20 +08:00
siddontang 48e09a2727 use our own leveldb 2014-06-19 17:19:40 +08:00
silentsai 852fce9f4c add server commands of expire/ttl 2014-06-16 19:24:37 +08:00
siddontang 9e3dfc2191 replication bugfix 2014-06-12 21:29:41 +08:00
siddontang 8592324a2f optimize access log 2014-06-12 14:10:29 +08:00
siddontang 5a902fc9d1 set args must be 2 2014-06-11 16:49:17 +08:00
siddontang 655db07604 add access log 2014-06-11 16:48:11 +08:00
siddontang 00b5fb4b24 a liitle change 2014-06-11 14:52:34 +08:00
siddontang ebd15e5738 add replication test 2014-06-10 10:41:50 +08:00
siddontang ef22d7000d add replication, test later 2014-06-09 17:23:32 +08:00
siddontang 993ccdd052 add flushall, some replication 2014-06-08 16:43:59 +08:00
siddontang 664a082c06 refactor replication, deprecate relaylog 2014-06-07 16:56:22 +08:00
siddontang 8fab454223 adjust config, add some replication fund 2014-06-06 14:57:30 +08:00
siddontang 68c63c416a adjust config 2014-06-06 11:25:13 +08:00
siddontang 5d466fb82f add data_dir, like mysql to store all data 2014-06-06 10:34:57 +08:00