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

Commit

Permalink
we shoud be skipping not found errors, not 500ing
Browse files Browse the repository at this point in the history
  • Loading branch information
mreiferson committed Mar 7, 2013
1 parent 6ea259c commit cd76100
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions simpletokyo/simpletokyo.c
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 cd76100

Please sign in to comment.