diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-10-07 18:19:32 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2012-10-07 18:19:32 +0000 |
commit | d2aa7382c64c60f0ca6aaf3c839cc2b5f5356d0c (patch) | |
tree | 6dcbbf91d734834f804b2fd9ab790244e2d60e6c /src/lockmanager | |
parent | 0b3762b5f5400ae9b6d23ee729a7aa74724cef37 (diff) |
-chaning multihashmap API to allow option for avoiding key allocation
git-svn-id: https://gnunet.org/svn/gnunet@24216 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/lockmanager')
-rw-r--r-- | src/lockmanager/gnunet-service-lockmanager.c | 2 | ||||
-rw-r--r-- | src/lockmanager/lockmanager_api.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/lockmanager/gnunet-service-lockmanager.c b/src/lockmanager/gnunet-service-lockmanager.c index 296dd00654..4cb9ff2aef 100644 --- a/src/lockmanager/gnunet-service-lockmanager.c +++ b/src/lockmanager/gnunet-service-lockmanager.c @@ -821,7 +821,7 @@ lockmanager_run (void *cls, struct GNUNET_SERVER_Handle *server, }; GNUNET_SERVER_add_handlers (server, message_handlers); GNUNET_SERVER_disconnect_notify (server, &client_disconnect_cb, NULL); - lock_map = GNUNET_CONTAINER_multihashmap_create (30); + lock_map = GNUNET_CONTAINER_multihashmap_create (32, GNUNET_NO); GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_FOREVER_REL, &shutdown_task, NULL); } diff --git a/src/lockmanager/lockmanager_api.c b/src/lockmanager/lockmanager_api.c index 8adf486eec..3b9e70e595 100644 --- a/src/lockmanager/lockmanager_api.c +++ b/src/lockmanager/lockmanager_api.c @@ -567,7 +567,7 @@ GNUNET_LOCKMANAGER_connect (const struct GNUNET_CONFIGURATION_Handle *cfg) LOG (GNUNET_ERROR_TYPE_DEBUG, "%s() END\n", __func__); return NULL; } - h->hashmap = GNUNET_CONTAINER_multihashmap_create (15); + h->hashmap = GNUNET_CONTAINER_multihashmap_create (16, GNUNET_NO); GNUNET_assert (NULL != h->hashmap); h->in_replies = GNUNET_YES; GNUNET_CLIENT_receive (h->conn, &handle_replies, h, |