Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12943

Improve error message for compact with preservePadding and paddingBytes/paddingFactor options

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: None
    • Component/s: Diagnostics, MMAPv1, Storage
    • Labels:
      None
    • Storage Execution

      The compact command disallows the use of preservePadding with the paddingBytes or paddingFactor options. The error message for this scenario uses a pipe to convey 'or', which may not be universally recognizable by users.

      > var cmd = {compact: 'compact', preservePadding: true, paddingBytes: 0};
      > db.getSiblingDB('repro').runCommand(cmd);
      {
      	"ok" : 0,
      	"errmsg" : "cannot mix preservePadding and paddingFactor|paddingBytes"
      }
      

      Version: b605f98c68a03fd0e65be72f9a22af4f107dee6b

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            kamran.khan Kamran K.
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: