diff options
author | Jordi Olivares Provencio <jordi@jolivar.es> | 2022-02-09 09:26:34 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-02-09 09:53:04 +0000 |
commit | 28cffc2d258c969faacb968275cddf9cc26a7649 (patch) | |
tree | 0ef6c9b32831428fc13098e5fd11681a62437f8d | |
parent | 9357161cfc1098344d94f8e3efd38b90ce67516f (diff) | |
download | mongo-28cffc2d258c969faacb968275cddf9cc26a7649.tar.gz |
SERVER-60112 Relax argument types of profile and replSetResizeOplog
-rw-r--r-- | src/mongo/db/commands/profile.idl | 2 | ||||
-rw-r--r-- | src/mongo/db/commands/resize_oplog.idl | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/commands/profile.idl b/src/mongo/db/commands/profile.idl index 6eac49f834c..cd4a295a950 100644 --- a/src/mongo/db/commands/profile.idl +++ b/src/mongo/db/commands/profile.idl @@ -57,7 +57,7 @@ commands: description: "The threshold, in milliseconds, at which ops are profiled and logged." optional: true sampleRate: - type: double + type: safeDouble description: "The fraction of eligible ops, in the range [0,1), to be logged/profiled." optional: true filter: diff --git a/src/mongo/db/commands/resize_oplog.idl b/src/mongo/db/commands/resize_oplog.idl index 6c3e211e644..64fed9ee167 100644 --- a/src/mongo/db/commands/resize_oplog.idl +++ b/src/mongo/db/commands/resize_oplog.idl @@ -44,11 +44,11 @@ commands: fields: size: description: "Size of the oplog in MB" - type: double + type: safeDouble optional: true validator: { gte: 990, lte: 1073741824 } # gte 990MB; lte 1PB (in MB) minRetentionHours: description: "Minimum number of hours to preserve oplog entry." - type: double + type: safeDouble optional: true validator: { gte: 0 } |