docu
[oweals/gnunet.git] / src / datacache / plugin_datacache_heap.c
index 8bc9b29f65964a510e3beee741bdbd3cece8f07a..41dd089746ad5474a74a553b4230f05092d2af91 100644 (file)
@@ -183,15 +183,14 @@ put_cb (void *cls,
     GNUNET_CONTAINER_heap_update_cost (put_ctx->heap,
                                       val->hn,
                                       val->discard_time.abs_value);
-    return GNUNET_NO;
-  }
-  if (val->type == put_ctx->type)
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
-               "Got another value for key %s and type %d (size %u vs %u)\n",
+               "Got same value for key %s and type %d (size %u vs %u)\n",
                GNUNET_h2s (key),
                val->type,
                (unsigned int) val->size,
                (unsigned int) put_ctx->size);
+    return GNUNET_NO;
+  }
   return GNUNET_YES;
 }