Skip to content

Commit

Permalink
Change order or delete operations
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Oct 31, 2024
1 parent 1154b60 commit 841a729
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions source/gridfs/gridfs-spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -670,8 +670,8 @@ This method is an optimisation over deleting each revision of a stored file indi
**Implementation details:**

Drivers MUST first find the `_id` field of all files collection documents with the given filename. Drivers MUST then
delete all chunks with `files_id` in the found ids that was just deleted. Drivers MUST then delete all files collection
documents with the found ids.
delete all files collection documents with the found ids. Drivers MUST then delete all chunks with `files_id` in the
found ids that was just deleted.

If there are no files collection documents with the given filename, drivers MUST raise an error.

Expand Down
2 changes: 1 addition & 1 deletion source/gridfs/tests/deleteByName.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/gridfs/tests/deleteByName.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,4 +99,4 @@ tests:
object: *bucket0
arguments:
filename: missing-file
expectError: { isError: true } # FileNotFound
expectError: { isClientError: true } # FileNotFound
2 changes: 1 addition & 1 deletion source/gridfs/tests/renameByName.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/gridfs/tests/renameByName.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ tests:
arguments:
filename: missing-file
newFilename: newfilename
expectError: { isError: true } # FileNotFound
expectError: { isClientError: true } # FileNotFound

0 comments on commit 841a729

Please sign in to comment.