diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-03-31 15:20:40 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-03-31 15:20:40 +0000 |
commit | b6f0365dd1cf3fbd6af64500cf9547583989e68b (patch) | |
tree | 657f83b66fba35e427f2a2b3ac09b54beba24801 /src/datastore | |
parent | 8296bb1d3fdc501f61eb61cff3d02fddeb6fa1e8 (diff) | |
download | gnunet-b6f0365dd1cf3fbd6af64500cf9547583989e68b.tar.gz gnunet-b6f0365dd1cf3fbd6af64500cf9547583989e68b.zip |
communicate content already present better
Diffstat (limited to 'src/datastore')
-rw-r--r-- | src/datastore/gnunet-service-datastore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/datastore/gnunet-service-datastore.c b/src/datastore/gnunet-service-datastore.c index aedf94f38..82a1f3ded 100644 --- a/src/datastore/gnunet-service-datastore.c +++ b/src/datastore/gnunet-service-datastore.c | |||
@@ -972,7 +972,7 @@ execute_put (struct GNUNET_SERVER_Client *client, | |||
972 | #endif | 972 | #endif |
973 | } | 973 | } |
974 | transmit_status (client, | 974 | transmit_status (client, |
975 | (GNUNET_SYSERR == ret) ? GNUNET_SYSERR : GNUNET_OK, | 975 | ret, |
976 | msg); | 976 | msg); |
977 | GNUNET_free_non_null (msg); | 977 | GNUNET_free_non_null (msg); |
978 | if (quota - reserved - cache_size < payload) | 978 | if (quota - reserved - cache_size < payload) |
@@ -1026,7 +1026,7 @@ check_present (void *cls, | |||
1026 | if (key == NULL) | 1026 | if (key == NULL) |
1027 | { | 1027 | { |
1028 | if (pc->is_present == GNUNET_YES) | 1028 | if (pc->is_present == GNUNET_YES) |
1029 | transmit_status (pc->client, GNUNET_OK, NULL); | 1029 | transmit_status (pc->client, GNUNET_NO, NULL); |
1030 | else | 1030 | else |
1031 | execute_put (pc->client, dm); | 1031 | execute_put (pc->client, dm); |
1032 | GNUNET_SERVER_client_drop (pc->client); | 1032 | GNUNET_SERVER_client_drop (pc->client); |