Mercurial > dovecot > core-2.2
view src/lib-dict-extra/dict-register.c @ 22656:1789bf2a1e01
director: Make sure HOST-RESET-USERS isn't used with max_moving_users=0
The reset command would just hang in that case. doveadm would never have
sent this, so this is just an extra sanity check.
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Sun, 05 Nov 2017 23:51:56 +0200 |
parents | 2e2563132d5f |
children | cb108f786fb4 |
line wrap: on
line source
/* Copyright (c) 2013-2017 Dovecot authors, see the included COPYING file */ #include "lib.h" #include "dict-private.h" static int refcount = 0; void dict_drivers_register_builtin(void) { if (refcount++ > 0) return; dict_driver_register(&dict_driver_client); dict_driver_register(&dict_driver_file); dict_driver_register(&dict_driver_fs); dict_driver_register(&dict_driver_memcached); dict_driver_register(&dict_driver_memcached_ascii); dict_driver_register(&dict_driver_redis); } void dict_drivers_unregister_builtin(void) { if (--refcount > 0) return; dict_driver_unregister(&dict_driver_client); dict_driver_unregister(&dict_driver_file); dict_driver_unregister(&dict_driver_fs); dict_driver_unregister(&dict_driver_memcached); dict_driver_unregister(&dict_driver_memcached_ascii); dict_driver_unregister(&dict_driver_redis); }