Skip to content

Commit 8ee7888

Browse files
committed
Fixing timestamp issue for mongodb file system
1 parent 36c5122 commit 8ee7888

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/picoded/dstack/mongodb/MongoDB_FileWorkspaceMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ public long backend_createdTimestamp(final String oid, final String filepath) {
801801
*/
802802
public long backend_modifiedTimestamp(final String oid, final String filepath) {
803803
// Lets build the query for the "root file"
804-
Bson query = Filters.eq("filename", filepath);
804+
Bson query = Filters.eq("filename", oid + "/" + filepath);
805805

806806
// Lets prepare the search
807807
GridFSFindIterable search = gridFSBucket.find(query).limit(1);

0 commit comments

Comments
 (0)