[SERVER-12943] Improve error message for compact with preservePadding and paddingBytes/paddingFactor options Created: 27/Feb/14  Updated: 06/Dec/22  Resolved: 14/Sep/18

Status: Closed
Project: Core Server
Component/s: Diagnostics, MMAPv1, Storage
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Trivial - P5
Reporter: Kamran K. Assignee: Backlog - Storage Execution Team
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Assigned Teams:
Storage Execution
Participants:

 Description   

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


Generated at Thu Feb 08 03:30:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.