- GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
- return;
- }
- GNUNET_log (GNUNET_ERROR_TYPE_INFO,
- "Received a store request (size: %u). Sub system `%s' Peer `%s Key `%s' Options: %d.\n",
- (unsigned int) record->value_size,
- record->sub_system,
- GNUNET_i2s (record->peer),
- record->key,
- ntohl (srm->options));
- record->client = client;
- if (GNUNET_OK !=
- db->store_record (db->cls, record->sub_system, record->peer, record->key,
- record->value, record->value_size, *record->expiry,
- ntohl (srm->options), store_record_continuation,
- record))
- {
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- _("Failed to store requested value, database error."));
- PEERSTORE_destroy_record (record);
- GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
- return;