summaryrefslogtreecommitdiffstats
path: root/nserver/src/protocol.c
Commit message (Collapse)AuthorAgeFilesLines
* nserver/ -> ./rsiddharth2020-04-171-310/+0
|
* nserver: Add license text to source files.rsiddharth2020-04-171-0/+5
|
* nserver: Update sslist.rsiddharth2020-04-171-2/+25
| | | | | * nserver/src/protocol.c (sslist): Don't bomb whent tst is null; just return "EMPTY". Also bcstrfree the c string return by bstr2cstr.
* nserver: Update ssload.rsiddharth2020-04-171-3/+7
| | | | | * nserver/src/protocol.c (ssload): Insert loaded record int TSTree only if the record was newly created.
* nserver: Add ssload.rsiddharth2020-04-171-0/+45
| | | | | | * 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: Update ssdump.rsiddharth2020-04-171-1/+1
| | | | * nserver/src/protocol.c (ssdump): Fix key strlen check.
* nserver: Add ssstore.rsiddharth2020-04-171-0/+24
| | | | | | * 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: Update ssmean.rsiddharth2020-04-171-1/+1
|
* nserver/src/protocol.c: Update ssdelete.rsiddharth2020-04-171-0/+7
| | | | | | * nserver/src/protocol.c (ssdelete): Clear Stats record. (sscreate): Allocated fresh Stats record for deleted key that's added back again.
* nserver: Update sscreate.rsiddharth2020-04-171-1/+1
| | | | * nserver/src/protocol.c (sscreate) Fix typo.
* nserver/src/protocol.c: Add "deleted" flag handling.rsiddharth2020-04-171-0/+9
| | | | | | * nserver/src/protocol.c (sssample_parent, sssample) (ssmean, ssdump, traverse_tree): Add check to see if record was deleted.
* nserver/src/protocol.c: Update ssdelete.rsiddharth2020-04-171-1/+1
| | | | Use TSTree_search.
* nserver/src/protocol.c: Updat ssdelete.rsiddharth2020-04-171-20/+11
| | | | | | * 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: Refactor sslist.rsiddharth2020-04-171-26/+25
| | | | | * nserver/src/protocol.c (sslist): Refactor sslist to use TSTree. * nserver/tests/protocol_tests.c (test_sslist): Update test.
* nserver/src/protocol.c: Refactor ssdump.rsiddharth2020-04-171-7/+7
| | | | | * nserver/src/protocol.c (ssdump): Refactor function to use TSTree. * server/tests/protocol_tests.c (test_ssdump): Updat test.
* nserver: Update ssmean.rsiddharth2020-04-171-8/+8
| | | | | | * 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 -> sssample_parent.rsiddharth2020-04-171-2/+2
| | | | | | * nserver/src/protocol.c (ssample_parent): Rename to... (sssample_parent): ...this. (sssample): Update function.
* nserver/src/protocol.c: Update sssample.rsiddharth2020-04-171-1/+5
| | | | | | * 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: Add ssample_parent.rsiddharth2020-04-171-0/+22
| | | | * nserver/src/protocol.c (ssample_parent): New function.
* nserver/src/protocol.c: Update ssample.rsiddharth2020-04-171-11/+10
| | | | | * nserver/src/protocol.c (ssample): Refactor to use TSTree. * nserver/tests/protocol_tests.c (test_ssample): Update test.
* nserver/src/protocol.c: Refactor sscreate.rsiddharth2020-04-171-18/+28
| | | | | * nserver/src/protocol.c (ssinit): Remove function. (sscreate): Refactor to use TSTree instead of Hashmap.
* nserver: protocol.h: Update sssample.rsiddharth2020-04-171-2/+5
| | | | | | | * 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: protocol: Update sslist.rsiddharth2020-04-171-1/+12
| | | | * nserver/src/protocol.c (sslist): Destroy `ks` after use.
* nserver: protocol.h: Add sslist.rsiddharth2020-04-171-0/+30
| | | | | | | * 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: protocol: Update ssmean.rsiddharth2020-04-171-1/+1
| | | | * nserver/src/protocol.c (ssmean): Fix typo in comment.
* nserver: protocol: Define ssdump.rsiddharth2020-04-171-0/+19
| | | | | | * nserver/src/protocol.c (ssdump): New function. * nserver/tests/protocol_tests.c (test_ssdump): New test. (all_tests): Add test_ssdump.
* nserver: protocol: Define ssdelete.rsiddharth2020-04-171-0/+27
| | | | | | * nserver/src/protocol.c (ssdelete): New function. * nserver/tests/protocol_tests.c (test_ssdelete): New test. (all_tests): Add test_ssdelete.
* nserver: protocol: Define ssmean.rsiddharth2020-04-171-0/+19
| | | | | | * nserver/src/protocol.c (ssmean): New function. * nserver/tests/protocol_tests.c (test_ssmean): New test. (all_tests): ADd test_ssmean.
* nserver: protocol: Define sssample.rsiddharth2020-04-171-0/+21
| | | | | | * 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: Update sscreate.rsiddharth2020-04-171-0/+14
| | | | | * nserver/src/protocol.c (sscreate): Flesh it out. Initial version. * nserver/src/protocol.h: Include bstrlib, stats.
* nserver: Add protocol.crsiddharth2020-04-171-0/+24