Commit Graph

497 Commits

Author SHA1 Message Date
Sascha L. Teichmann
066675896d Dont rely on compiler smartness to replace / and % by shifting and masking. Make use of constants more consistence. 2014-08-18 19:58:10 +02:00
Sascha L. Teichmann
ff14b83b1e Made encode/decode api more symmetric. Added some unit test for the encoders/decoders. 2014-08-18 18:01:34 +02:00
Sascha L. Teichmann
a210207f8e Added more functions for treating coordinates. 2014-08-18 16:29:17 +02:00
Sascha L. Teichmann
da5c70b55b Use strconv.FormatInt() directly to convert key to string w/o using expensive fmt.Sprintf(). 2014-08-17 12:08:26 +02:00
Sascha L. Teichmann
6efb976ba2 Fixed HKEYS command for SQLite3 backend. 2014-08-16 17:41:54 +02:00
Sascha L. Teichmann
b6c041b896 Moved coords in separate module. 2014-08-16 16:06:42 +02:00
Sascha L. Teichmann
120531ed78 LevelDB backend: Recycle iterator in all keys fetch. 2014-08-11 17:07:23 +02:00
Sascha L. Teichmann
ecf00b45f5 Added tag 0.3 for changeset f1f4e58c816d 2014-08-11 16:19:14 +02:00
Sascha L. Teichmann
5d1ffa39a8 version: 0.3 2014-08-11 16:19:08 +02:00
Sascha L. Teichmann
d96d352db8 Sqlite backend: Unlock the mutex in Allkeys correctly. 2014-08-11 15:47:20 +02:00
Sascha L. Teichmann
d54af34288 LevelDB: Seeked to start to get all the keys in HKEYS command. 2014-08-11 15:13:18 +02:00
Sascha L. Teichmann
d321d1888b Added experimental support for HKEYS to make minetestmapper happy. 2014-08-11 14:56:01 +02:00
Sascha L. Teichmann
720a6f497c Added tag 0.2 for changeset 55265226a98d 2014-08-08 15:13:38 +02:00
Sascha L. Teichmann
9058c5fc56 version: 0.2 2014-08-08 15:13:33 +02:00
Sascha L. Teichmann
829f251700 Limit length of bulk string to 4MB. That should really be enough for a Minetest block. 2014-08-08 15:12:30 +02:00
Sascha L. Teichmann
8dba5f5f3b Removed obsolete coord to bytes transformation. Added TODO. 2014-08-08 15:04:53 +02:00
Sascha L. Teichmann
d2e9984529 Recieve larger bulk strings than 4k from redis client. 2014-08-08 13:45:24 +02:00
Sascha L. Teichmann
2e47262ce8 LevelDB: Do not create cache if cache size <= 0. 2014-08-08 10:05:03 +02:00
Sascha L. Teichmann
787ea5d0ee Mute logging a bit. 2014-08-08 00:16:00 +02:00
Sascha L. Teichmann
b5d372765d Fixed a few typos in warnigs of Redis parser. 2014-08-07 20:25:48 +02:00
Sascha L. Teichmann
bf55abd1b9 s/go get/go install/ for the external dependencies in dev setup. 2014-08-07 20:21:15 +02:00
Sascha L. Teichmann
f474ef6920 Removed pos recalc from leveldb backend. 2014-08-07 20:20:04 +02:00
Sascha L. Teichmann
c09d74ae0f Free memory of write batches in LevelDB backend. Use an extra r/w mutex. 2014-08-07 15:16:12 +02:00
Sascha L. Teichmann
954dddf795 Added tag 0.1 for changeset fa8009dd8a84 2014-08-06 11:05:01 +02:00
Sascha L. Teichmann
398b36d013 version: 0.1 2014-08-06 11:04:55 +02:00
Sascha L. Teichmann
f080144098 README edited online with Bitbucket 2014-08-06 08:58:27 +00:00
Sascha L. Teichmann
e38d8eb9fc Added cyclic garbage collection for a defined interval. Defaults to 24h 2014-08-06 10:52:37 +02:00
Sascha L. Teichmann
66b85f199c Added version flag for command line. 2014-08-06 10:04:24 +02:00
Sascha L. Teichmann
3f97399a82 Introduced a backend session to track transactions more clearly. 2014-08-06 01:11:41 +02:00
Sascha L. Teichmann
737b09436c README edited online with Bitbucket 2014-08-05 17:28:22 +00:00
Sascha L. Teichmann
eabcd53f6b Removed another defer. 2014-08-04 22:23:16 +02:00
Sascha L. Teichmann
913ae0d2c7 go fmt'ed 2014-08-04 21:06:41 +02:00
Sascha L. Teichmann
35d05ba9c8 LevelDB needs re-coding of positions with zero components. 2014-08-04 17:10:19 +02:00
Sascha L. Teichmann
de9f738306 Simplified LevelDB data storing. 2014-08-04 15:29:26 +02:00
Sascha L. Teichmann
12e0516929 Simplified LevelDB writing. 2014-08-04 15:28:01 +02:00
Sascha L. Teichmann
61cc35fda8 Dont log errors if client closes connections. 2014-08-04 15:18:32 +02:00
Sascha L. Teichmann
7a98421645 README edited online with Bitbucket 2014-08-03 16:04:19 +00:00
Sascha L. Teichmann
7a6bde2e5b Added README 2014-08-03 16:39:26 +02:00
Sascha L. Teichmann
749c22e83a Added license: MIT 2014-08-03 15:59:56 +02:00
Sascha L. Teichmann
df3f7ab526 go fmt'ed 2014-08-03 15:42:12 +02:00
Sascha L. Teichmann
ccb6849903 Added SQLite3 backend support. 2014-08-03 14:52:24 +02:00
Sascha L. Teichmann
da0b5ebba6 Abstracted backend as an interface and implemented the LevelDB stuff as such. 2014-08-03 11:25:25 +02:00
Sascha L. Teichmann
095164a6c8 Factored connection handling into separate file. 2014-08-03 09:20:47 +02:00
Sascha L. Teichmann
8a8351e8c1 Made error handling for redis client less code noisy. 2014-08-03 09:02:18 +02:00
Sascha L. Teichmann
0b11ac01db Shorten log about started server and accepted client a bit. 2014-08-03 08:10:52 +02:00
Sascha L. Teichmann
4a3df9a86b Factored redis parser into separate file. 2014-08-03 01:16:43 +02:00
Sascha L. Teichmann
1b36ba7c5b initial checkin 2014-08-03 00:01:14 +02:00