Skip to content

Commit ae36af9

Browse files
authored
[bugfix](be) the config could not be modified on line (#46470)
This value is saved in some type description, could not be modified online. User should restart BE after modify this value. For example, static TypeDescriptor create_string_type() { TypeDescriptor ret; ret.type = TYPE_STRING; ret.len = config::string_type_length_soft_limit_bytes; return ret; }
1 parent aba84f9 commit ae36af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

be/src/common/config.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ DEFINE_String(rpc_load_balancer, "rr");
915915

916916
// a soft limit of string type length, the hard limit is 2GB - 4, but if too long will cause very low performance,
917917
// so we set a soft limit, default is 1MB
918-
DEFINE_mInt32(string_type_length_soft_limit_bytes, "1048576");
918+
DEFINE_Int32(string_type_length_soft_limit_bytes, "1048576");
919919

920920
DEFINE_Validator(string_type_length_soft_limit_bytes,
921921
[](const int config) -> bool { return config > 0 && config <= 2147483643; });

0 commit comments

Comments
 (0)