0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-01 05:08:59 +02:00

ircd::db: Use off-stack buffer here for logging.

This commit is contained in:
Jason Volk 2018-01-11 22:21:51 -08:00
parent 239eb0e9ad
commit 51d729fa3a

View file

@ -1060,7 +1060,7 @@ ircd::db::database::logs::Logv(const rocksdb::InfoLogLevel level,
if(level < GetInfoLogLevel())
return;
char buf[1024]; const auto len
thread_local char buf[1024]; const auto len
{
vsnprintf(buf, sizeof(buf), fmt, ap)
};