| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
* src/protocol.c (ssstore): Clean up st_str.
|
|
|
|
| |
* src/protocol.c (sslist): Clean up ks_str.
|
| |
|
| |
|
|
|
|
| |
* src/nserve.c (nserve): Refactor how it ends itself.
|
|
|
|
|
| |
* tests/ncmd_tests.c (test_call_function): Remove debug printf
statement.
|
|
|
|
|
|
| |
* src/ncmd.c (check_cmd): Change error message when command is
invalid.
* tests/ncmd_tests.c (test_check_cmd): Update test.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Some tests were modified.
|
|
|
|
|
| |
* nserver/src/tstree.c (TSTree_search_prefix): Fix the largest prefix
matching key instead of the shortest.
|
|
|
|
| |
Add test functins from liblcthw.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
* nserver/src/nserve.c (nserve): Fix calloc calls.
|
|
|
|
|
| |
* 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/ncmd.c (find_function): Add handling to find NS_LOAD.
(call_function): Add handling for NS_LOAD.
* nserver/src/ncmd.h (FUNCTIONS): Add NS_LOAD
* nserver/tests/ncmd_tests.c (test_find_function)
(test_call_function, test_process): Update tests to check the
correctness of NS_LOAD.
|
|
|
|
|
| |
* nserver/src/protocol.c (ssload): Insert loaded record int TSTree
only if the record was newly created.
|
|
|
|
| |
* nserver/src/db.c (db_load): close gdbm.
|
|
|
|
|
| |
* nserver/src/db.c (mk_datum): Set datum's dsize to exactly the
length of the data.
|
|
|
|
|
|
|
|
|
| |
* nserver/src/ncmd.c (find_function): Add handling to find NS_STORE.
(call_function): Add handling for NS_STORE.
* nserver/src/ncmd.h (FUNCTIONS): Add NS_STORE
* nserver/tests/ncmd_tests.c (test_find_function)
(test_call_function, test_process): Update tests to check the
correctness of NS_STORE.
|
|
|
|
|
|
| |
* 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/tests/protocol_tests.c (test_ssdelete): Fix test.
|
|
|
|
|
|
| |
* 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/db.c (db_load): New function definition.
* nserver/src/db.h (db_load): New function declaration.
* nserver/tests/db_tests.c (test_db_load): New test.
|
|
|
|
|
|
| |
* nserver/src/db.c (db_store): New function definition.
* nserver/src/db.h (db_store): New function declaration.
* nserver/tests/db_tests.c (test_db_store): New test.
|
|
|
|
| |
* nserver/src/db.c (mk_datum): New function.
|
|
|
|
|
| |
* nserver/src/db.c (db_open): New function.
(db_init): Use db_open to get GDBM_FILE.
|
|
|
|
|
|
|
|
|
|
| |
* nserver/src/stats.c (Stats_unstringify): New function definition.
* nserver/src/stats.h (Stats_unstringify): New function declaration.
* nserver/tests/stats_tests.c (tests_stats_unstringify): Test for
Stats_unstringify.
(tests_stats_unstringify): st_str is now a static variable. Don't free
it; it's done in tests_stats_unstringify.
(st_str): New static variable.
|
|
|
|
|
| |
* nserver/src/stats.c (Stats_stringify): Change format of stringified Stats.
* nserver/tests/stats_tests.c (test_stats_stringify): Update test.
|
|
|
|
|
|
|
| |
* nserver/src/stats.c (Stats_stringify): New function definition.
* nserver/src/stats.h (Stats_stringify): New function declaration.
* nserver/tests/stats_tests.c (test_tests_stringify): Test for
Stats_stringify.
|
|
|
|
|
|
|
|
|
|
| |
* nserver/.gitignore: Add nserver.db
* nserver/Makefile ($(PROGRAMS))
(tests): Link gdbm.
(clean): Remove nserver.db
* nserver/src/db.c (db_init): New function.
* nserver/src/db.h (db_init): New function declaration.
* nserver/tests/db_tests.c: Tests for db.h
|
| |
|
|
|
|
| |
Include /usr/local/include.
|
|
|
|
| |
Update sscreate error check.
|
| |
|
|
|
|
|
| |
* nserver/tests/protocol_tests.c (test_sscreate)
(test_sssample, test_ssmean, test_ssdump): Add delete flag 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.
|