From 5c0ede68c238c5b1f689e8c55464cebbf62f1057 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Mon, 17 Feb 2020 20:30:22 -0500 Subject: nserver/src/protocol.c: Update ssdelete. Use TSTree_search. --- nserver/src/protocol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nserver/src/protocol.c b/nserver/src/protocol.c index 648e7b7..10d7a83 100644 --- 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; -- cgit v1.2.3