| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
| |
* nserver/src/protocol.c (sslist): Don't bomb whent tst is null; just
return "EMPTY". Also bcstrfree the c string return by bstr2cstr.
|
|
|
|
|
| |
* nserver/src/protocol.c (ssload): Insert loaded record int TSTree
only if the record was newly created.
|
|
|
|
|
|
| |
* nserver/src/protocol.c (ssload): New function definition.
* nserver/src/protocol.h (ssload): New function declaration.
* nserver/tests/protocol_tests.c (test_ssload): New test.
|
|
|
|
| |
* nserver/src/protocol.c (ssdump): Fix key strlen check.
|
|
|
|
|
|
| |
* nserver/src/protocol.c (ssstore): New function definition.
* nserver/src/protocol.h (ssstore): New function declaration.
* nserver/tests/protocol_tests.c (test_ssstore): New test.
|
| |
|
|
|
|
|
|
| |
* nserver/src/protocol.c (ssdelete): Clear Stats record.
(sscreate): Allocated fresh Stats record for deleted key that's added
back again.
|
|
|
|
| |
* nserver/src/protocol.c (sscreate) Fix typo.
|
|
|
|
|
|
| |
* nserver/src/protocol.c (sssample_parent, sssample)
(ssmean, ssdump, traverse_tree): Add check to see if record was
deleted.
|
|
|
|
| |
Use TSTree_search.
|
|
|
|
|
|
| |
* nserver/src/protocol.c (ssdelete): Refactor to use TSTree.
(hash): Remove static variable. No longer used.
* nserver/tests/protocol_tests.c (all_tests): Uncomment test_ssdelete.
|
|
|
|
|
| |
* nserver/src/protocol.c (sslist): Refactor sslist to use TSTree.
* nserver/tests/protocol_tests.c (test_sslist): Update test.
|
|
|
|
|
| |
* nserver/src/protocol.c (ssdump): Refactor function to use TSTree.
* server/tests/protocol_tests.c (test_ssdump): Updat test.
|
|
|
|
|
|
| |
* nserver/src/protocol.c (ssmean): Rewrite to use TSTree instead of
Hashmap.
* nserver/tests/protocol_tests.c (test_ssmean): Update test.
|
|
|
|
|
|
| |
* nserver/src/protocol.c (ssample_parent): Rename to...
(sssample_parent): ...this.
(sssample): Update function.
|
|
|
|
|
|
| |
* nserver/src/protocol.c (sssample): Call ssample_parent on key.
* nserver/tests/protocol_tests.c (test_sscreate, test_sssample):
Update tests to test ssample_parent.
|
|
|
|
| |
* nserver/src/protocol.c (ssample_parent): New function.
|
|
|
|
|
| |
* nserver/src/protocol.c (ssample): Refactor to use TSTree.
* nserver/tests/protocol_tests.c (test_ssample): Update test.
|
|
|
|
|
| |
* nserver/src/protocol.c (ssinit): Remove function.
(sscreate): Refactor to use TSTree instead of Hashmap.
|
|
|
|
|
|
|
| |
* nserver/src/protocol.c (sssample): Return mean on success.
* nserver/src/protocol.h (sssample): Change return data type to
double.
* nserver/tests/protocol_tests.c (test_sssample): Update test.
|
|
|
|
| |
* nserver/src/protocol.c (sslist): Destroy `ks` after use.
|
|
|
|
|
|
|
| |
* nserver/src/protocol.c (sslist): New function.
* nserver/src/protocol.h (sslist): New function declaration.
* nserver/tests/protocol_tests.c (test_sslist): Test fr sslist.
(all_tests): Add test_sslist.
|
|
|
|
| |
* nserver/src/protocol.c (ssmean): Fix typo in comment.
|
|
|
|
|
|
| |
* nserver/src/protocol.c (ssdump): New function.
* nserver/tests/protocol_tests.c (test_ssdump): New test.
(all_tests): Add test_ssdump.
|
|
|
|
|
|
| |
* nserver/src/protocol.c (ssdelete): New function.
* nserver/tests/protocol_tests.c (test_ssdelete): New test.
(all_tests): Add test_ssdelete.
|
|
|
|
|
|
| |
* nserver/src/protocol.c (ssmean): New function.
* nserver/tests/protocol_tests.c (test_ssmean): New test.
(all_tests): ADd test_ssmean.
|
|
|
|
|
|
| |
* nserver/src/protocol.c (sssample): New function.
* nserver/tests/protocol_tests.c (test_sssample): New test.
(all_tests): Add test_sssample.
|
|
|
|
|
| |
* nserver/src/protocol.c (sscreate): Flesh it out. Initial version.
* nserver/src/protocol.h: Include bstrlib, stats.
|
|
|