Add a comment

This commit is contained in:
Konstantin Bogdanov 2024-08-28 15:11:19 +02:00
parent 0c23257aa8
commit 896b1726e7
No known key found for this signature in database

View File

@ -237,6 +237,7 @@ SettingFieldMaxThreads & SettingFieldMaxThreads::operator=(const Field & f)
String SettingFieldMaxThreads::toString() const
{
if (is_auto)
/// Removing quotes this will introduce incompatibility between replicas with different version.
return "'auto(" + ::DB::toString(value) + ")'";
else
return ::DB::toString(value);