fix error with uninitialized system_logs

This commit is contained in:
CurtizJ 2019-06-21 22:24:30 +03:00
parent ac3072cd9b
commit 53634a324e

View File

@ -249,7 +249,8 @@ struct ContextShared
* Note that part changes at shutdown won't be logged to part log.
*/
system_logs->shutdown();
if (system_logs)
system_logs->shutdown();
/** At this point, some tables may have threads that block our mutex.
* To shutdown them correctly, we will copy the current list of tables,