Skip to content

Commit 5a3fdfc

Browse files
committed
Fixing filter typo
1 parent 4b5a066 commit 5a3fdfc

5 files changed

Lines changed: 26 additions & 4 deletions

File tree

src/main/java/picoded/dstack/core/Core_FileWorkspaceMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ public long backend_modifiedTimestamp(final String oid, final String filepath) {
499499
* @param pathType (0 = any, 1 = file, 2 = folder)
500500
* @return
501501
*/
502-
protected Set<String> backend_filtterPathSet(final Set<String> rawSet, final String folderPath,
502+
protected Set<String> backend_filterPathSet(final Set<String> rawSet, final String folderPath,
503503
final int minDepth, final int maxDepth, final int pathType) {
504504

505505
// Normalize the folder path

src/main/java/picoded/dstack/file/simple/FileSimple_FileWorkspaceMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,7 @@ public Set<String> backend_getFileAndFolderPathSet(final String oid, final Strin
624624
recusively_populatePathSet(retSet, folderObj, "", maxDepth);
625625

626626
// Return with minDepth filtering
627-
return backend_filtterPathSet(retSet, "", minDepth, maxDepth, 0);
627+
return backend_filterPathSet(retSet, "", minDepth, maxDepth, 0);
628628
}
629629

630630
}

src/main/java/picoded/dstack/jsql/JSql_FileWorkspaceMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ public Set<String> backend_getFileAndFolderPathSet(final String oid, final Strin
654654
}
655655

656656
// Filter and return it accordingly
657-
return backend_filtterPathSet(rawSet, folderPath, minDepth, maxDepth, 0);
657+
return backend_filterPathSet(rawSet, folderPath, minDepth, maxDepth, 0);
658658
}
659659

660660
}

src/main/java/picoded/dstack/struct/simple/StructSimple_FileWorkspaceMap.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ public Set<String> backend_getFileAndFolderPathSet(final String oid, final Strin
614614
}
615615

616616
// Return a filtered set
617-
return backend_filtterPathSet(workspace.keySet(), searchPath, minDepth, maxDepth, 0);
617+
return backend_filterPathSet(workspace.keySet(), searchPath, minDepth, maxDepth, 0);
618618
} finally {
619619
accessLock.readLock().unlock();
620620
}

src/test/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Docker Commands to setup "testing DB" locally
2+
3+
## MongoDB
4+
5+
DB Setup
6+
7+
```
8+
sudo docker run --name dstack-mongodb -p 27017:27017 -d mongo:5
9+
```
10+
11+
Run Tests
12+
13+
```
14+
./gradlew test -Ptest_all --tests picoded.dstack.mongodb.*
15+
```
16+
17+
Cleanup DB
18+
19+
```
20+
sudo docker stop dstack-mongodb;
21+
sudo docker rm dstack-mongodb;
22+
```

0 commit comments

Comments
 (0)