aboutsummaryrefslogtreecommitdiff
path: root/src/datastore/datastore_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/datastore/datastore_api.c')
-rw-r--r--src/datastore/datastore_api.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/datastore/datastore_api.c b/src/datastore/datastore_api.c
index 311a61283..b2fc18947 100644
--- a/src/datastore/datastore_api.c
+++ b/src/datastore/datastore_api.c
@@ -498,6 +498,17 @@ make_queue_entry (struct GNUNET_DATASTORE_Handle *h,
498 struct GNUNET_DATASTORE_QueueEntry *pos; 498 struct GNUNET_DATASTORE_QueueEntry *pos;
499 unsigned int c; 499 unsigned int c;
500 500
501 if ( (h->queue_size == max_queue_size) &&
502 (h->queue_tail->priority >= queue_priority) )
503 {
504 GNUNET_STATISTICS_update (h->stats,
505 gettext_noop ("# queue overflows"),
506 1,
507 GNUNET_NO);
508 GNUNET_MQ_discard (env);
509 return NULL;
510 }
511
501 c = 0; 512 c = 0;
502 pos = h->queue_head; 513 pos = h->queue_head;
503 while ( (NULL != pos) && 514 while ( (NULL != pos) &&