This is an automated email from the ASF dual-hosted git repository. kamille pushed a commit to branch update-layered-memtable-options in repository https://gitbox.apache.org/repos/asf/incubator-horaedb-proto.git
commit 6e15b63c2baa30e03e9a2a18f12efb6a6303d01e Author: kamille <[email protected]> AuthorDate: Sat Sep 14 11:30:32 2024 +0800 update pb. --- protos/engine/manifest.proto | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/protos/engine/manifest.proto b/protos/engine/manifest.proto index 145d481..9795841 100644 --- a/protos/engine/manifest.proto +++ b/protos/engine/manifest.proto @@ -192,7 +192,9 @@ enum Compression { message LayeredMemtableOptions { uint64 mutable_segment_switch_threshold = 1; - // because bool's default value is false in pb, - // use `disable` here to make `enable` default true. - bool disable = 2; + // The flag is new added field, we need to make sure if it exists, + // so use oneof to let the field be optional. + oneof switch_flag { + bool enable = 2; + } } --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
