Some steps in server initialization need to be done last (after modules * are loaded). * Specifically, creation of threads due to a race bug in ld.so, in which * Thread Local Storage initialization collides with dlopen call. * see: https://sourceware.org/bugzilla/show_bug.cgi?id=19329 */
| 3373 | * Thread Local Storage initialization collides with dlopen call. |
| 3374 | * see: https://sourceware.org/bugzilla/show_bug.cgi?id=19329 */ |
| 3375 | void InitServerLast() { |
| 3376 | bioInit(); |
| 3377 | initThreadedIO(); |
| 3378 | set_jemalloc_bg_thread(server.jemalloc_bg_thread); |
| 3379 | server.initial_memory_usage = zmalloc_used_memory(); |
| 3380 | } |
| 3381 | |
| 3382 | /* Parse the flags string description 'strflags' and set them to the |
| 3383 | * command 'c'. If the flags are all valid C_OK is returned, otherwise |
no test coverage detected