[server] Only use atom to update global state.