Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

Commit

Permalink
Merge pull request #82 from mreiferson/404_fix
Browse files Browse the repository at this point in the history
simpletokyo 500s when any mget key is missing
  • Loading branch information
jehiah committed Mar 7, 2013
2 parents 6ea259c + cd76100 commit 5035a8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions simpletokyo/simpletokyo.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <json/json.h>

#define NAME "simpletokyo"
#define VERSION "2.0"
#define VERSION "2.1"

void finalize_request(int response_code, struct evhttp_request *req, struct evbuffer *evb, struct evkeyvalq *args, struct json_object *jsobj);
int db_open(char *addr, int port);
Expand Down Expand Up @@ -730,7 +730,7 @@ void mget_cb(struct evhttp_request *req, struct evbuffer *evb, void *ctx)
if (retry && !(value = tcrdbget2(rdb, key))) {
db_status = tcrdbecode(rdb);

if (db_status != TTENOREC) {
if (db_status == TTENOREC) {
// skip 404 errors on txt format; they just get no key,value line
continue;
}
Expand Down Expand Up @@ -816,7 +816,7 @@ void mget_int_cb(struct evhttp_request *req, struct evbuffer *evb, void *ctx)
if (retry && !(value = (int *)tcrdbget2(rdb, key))) {
db_status = tcrdbecode(rdb);

if (db_status != TTENOREC) {
if (db_status == TTENOREC) {
// skip 404 errors on txt format; they just get no key,value line
continue;
}
Expand Down

0 comments on commit 5035a8c

Please sign in to comment.