Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Add check in doUpdate() to make sure the document containing the file is returned #61
Added check in doUpdate() to make sure the document containing the file is returned when updating an existing document with a new file.
I had this rare issue when connecting to a replicaSet. Issue appears to be fixed in PHP mongo driver already but a check here would not hurt.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
I don't understand why
Is this because it's not possible to update a file's chunk data without also destroying the metadata? So we use
I imagine the PECL driver wouldn't error out if you attempted to update something that didn't exist, so perhaps we should NOP if we don't find an existing file.