communicate content already present better
authorChristian Grothoff <christian@grothoff.org>
Thu, 31 Mar 2011 15:20:40 +0000 (15:20 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 31 Mar 2011 15:20:40 +0000 (15:20 +0000)
src/datastore/gnunet-service-datastore.c

index aedf94f388a2a1038dba4903456602270a339218..82a1f3ded8df814e3ed1d70a0c4b1d649a053b40 100644 (file)
@@ -972,7 +972,7 @@ execute_put (struct GNUNET_SERVER_Client *client,
 #endif
     }
   transmit_status (client, 
-                  (GNUNET_SYSERR == ret) ? GNUNET_SYSERR : GNUNET_OK, 
+                  ret,
                   msg);
   GNUNET_free_non_null (msg);
   if (quota - reserved - cache_size < payload)
@@ -1026,7 +1026,7 @@ check_present (void *cls,
   if (key == NULL)
     {
       if (pc->is_present == GNUNET_YES)        
-       transmit_status (pc->client, GNUNET_OK, NULL);
+       transmit_status (pc->client, GNUNET_NO, NULL);
       else
        execute_put (pc->client, dm);
       GNUNET_SERVER_client_drop (pc->client);