nserver

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | LICENSE

commit 5c0ede68c238c5b1f689e8c55464cebbf62f1057
parent 3132ac2798d17de720a653068c968b5b4ed148e8
Author: rsiddharth <s@ricketyspace.net>
Date:   Mon, 17 Feb 2020 20:30:22 -0500

nserver/src/protocol.c: Update ssdelete.

Use TSTree_search.

Diffstat:
nserver/src/protocol.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/nserver/src/protocol.c b/nserver/src/protocol.c @@ -51,7 +51,7 @@ int ssdelete(char *key) check(key != NULL || strlen(key) < 1, "key invalid"); check(tst != NULL, "tstree not initialized"); - Record *rec = (Record *) TSTree_search_prefix(tst, key, strlen(key)); + Record *rec = (Record *) TSTree_search(tst, key, strlen(key)); if (rec == NULL) { // key does not exists. return 0;