wt utility overwrites passed config when given -m option

XMLWordPrintableJSON

    • Storage Engines, Storage Engines - Persistence
    • None
    • None

      wt utility replaces the passed command config if we pass -m.

      In the util_main.c we use the same cmd_config variable to store the input of -C and -m options, this leads to overwrite the option value with the last parsed one.

              case 'C': /* wiredtiger_open config */
                  cmd_config = __wt_optarg;
                  break;
      
              case 'm': /* verify metadata on connection open */
                  cmd_config = "verify_metadata=true";
                  meta_verify = true;
                  break;

      haribabu.kommi@mongodb.com's suggestion: fix the metadata option -m to use metadata_config instead of cmd_config and adjust the code necessarily.

            Assignee:
            Mariam Mojid
            Reporter:
            Mariam Mojid
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: