From 9f4ff8a54912e8c4ef40b479ddadddd33180089a Mon Sep 17 00:00:00 2001 From: Thomas Jungblut Date: Tue, 27 Feb 2024 15:54:17 +0100 Subject: [PATCH] remove txid references in meta surgery Signed-off-by: Thomas Jungblut --- cmd/bbolt/command_surgery_meta.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/bbolt/command_surgery_meta.go b/cmd/bbolt/command_surgery_meta.go index 36cf33ce5..f774007bf 100644 --- a/cmd/bbolt/command_surgery_meta.go +++ b/cmd/bbolt/command_surgery_meta.go @@ -91,11 +91,11 @@ var allowedMetaUpdateFields = map[string]struct{}{ } // AddFlags sets the flags for `meta update` command. -// Example: --fields root:16,freelist:8 --fields pgid:128 --fields txid:1234 -// Result: []string{"root:16", "freelist:8", "pgid:128", "txid:1234"} +// Example: --fields root:16,freelist:8 --fields pgid:128 +// Result: []string{"root:16", "freelist:8", "pgid:128"} func (o *surgeryMetaUpdateOptions) AddFlags(fs *pflag.FlagSet) { o.surgeryBaseOptions.AddFlags(fs) - fs.StringSliceVarP(&o.fields, "fields", "", o.fields, "comma separated list of fields (supported fields: pageSize, root, freelist, pgid and txid) to be updated, and each item is a colon-separated key-value pair") + fs.StringSliceVarP(&o.fields, "fields", "", o.fields, "comma separated list of fields (supported fields: pageSize, root, freelist and pgid) to be updated, and each item is a colon-separated key-value pair") fs.Uint32VarP(&o.metaPageId, "meta-page", "", o.metaPageId, "the meta page ID to operate on, valid values are 0 and 1") }