This function is called once a background process of some kind terminates, * as we want to avoid resizing the hash tables when there is a child in order * to play well with copy-on-write (otherwise when a resize happens lots of * memory pages are copied). The goal of this function is to update the ability * for dict.c to resize the hash tables accordingly to the fact we have an * active fork
| 1706 | * for dict.c to resize the hash tables accordingly to the fact we have an |
| 1707 | * active fork child running. */ |
| 1708 | void updateDictResizePolicy(void) { |
| 1709 | if (!hasActiveChildProcess()) |
| 1710 | dictEnableResize(); |
| 1711 | else |
| 1712 | dictDisableResize(); |
| 1713 | } |
| 1714 | |
| 1715 | const char *strChildType(int type) { |
| 1716 | switch(type) { |
no test coverage detected