Permalink
Browse files

we shoud be skipping not found errors, not 500ing

  • Loading branch information...
1 parent 6ea259c commit cd76100b0692707acf5bd037d023ea765901b680 @mreiferson mreiferson committed Mar 7, 2013
Showing with 3 additions and 3 deletions.
  1. +3 −3 simpletokyo/simpletokyo.c
@@ -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);
@@ -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;
}
@@ -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;
}

0 comments on commit cd76100

Please sign in to comment.