diff options
| author | Junio C Hamano <gitster@pobox.com> | 2017-09-19 10:47:54 +0900 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2017-09-19 10:47:54 +0900 |
| commit | b86e112056a5fb9515a28527a7c1976ec972b0db (patch) | |
| tree | be2a73c659ee4a23f37e7e582724950b33e61ac5 /t/helper/test-hashmap.c | |
| parent | 0517ae0ba6a69c5c11cb8660c3d491f525cba09c (diff) | |
| parent | 8b604d19515c4be18403047045faa363d4de217b (diff) | |
| download | git-b86e112056a5fb9515a28527a7c1976ec972b0db.tar.gz | |
Merge branch 'jh/hashmap-disable-counting'
Our hashmap implementation in hashmap.[ch] is not thread-safe when
adding a new item needs to expand the hashtable by rehashing; add
an API to disable the automatic rehashing to work it around.
* jh/hashmap-disable-counting:
hashmap: add API to disable item counting when threaded
Diffstat (limited to 't/helper/test-hashmap.c')
| -rw-r--r-- | t/helper/test-hashmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/helper/test-hashmap.c b/t/helper/test-hashmap.c index 6004c81f0b..1145d51671 100644 --- a/t/helper/test-hashmap.c +++ b/t/helper/test-hashmap.c @@ -235,7 +235,8 @@ int cmd_main(int argc, const char **argv) } else if (!strcmp("size", cmd)) { /* print table sizes */ - printf("%u %u\n", map.tablesize, map.size); + printf("%u %u\n", map.tablesize, + hashmap_get_size(&map)); } else if (!strcmp("intern", cmd) && l1) { |
