Skip to content

Commit 841a729

Browse files
committed
Change order or delete operations
1 parent 1154b60 commit 841a729

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

source/gridfs/gridfs-spec.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -670,8 +670,8 @@ This method is an optimisation over deleting each revision of a stored file indi
670670
**Implementation details:**
671671

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

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

source/gridfs/tests/deleteByName.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/gridfs/tests/deleteByName.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,4 @@ tests:
9999
object: *bucket0
100100
arguments:
101101
filename: missing-file
102-
expectError: { isError: true } # FileNotFound
102+
expectError: { isClientError: true } # FileNotFound

source/gridfs/tests/renameByName.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/gridfs/tests/renameByName.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ tests:
110110
arguments:
111111
filename: missing-file
112112
newFilename: newfilename
113-
expectError: { isError: true } # FileNotFound
113+
expectError: { isClientError: true } # FileNotFound

0 commit comments

Comments
 (0)