-
Type:
New Feature
-
Resolution: Unresolved
-
Priority:
Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Tools and Replicator
-
573
Problem Statement/Rationale{}
Rationale:
- no easy way to get the count of restored documents without actually modifying the database
- behavior of --dryRun should match the non-dry-run behavior as close as possible (but not modify the database, of course)
Steps to Reproduce
- run mongorestore --dryRun with any dump
- it shows 0 out of 0 documents restored
- run it withou --dryRun
- it restores more than 0 documents
Expected Results
the --dryRun document count matching the real one
Actual Results
the --dryRun document count is always zero
Additional Notes
$ mongorestore --version mongorestore version: 100.9.4 git version: ce6af0fefca324ad5d9cb689d335130f48c99699 Go version: go1.20.12 os: linux arch: amd64 compiler: gc