소스 검색

filter networks, only copy current network

tags/v0.17.2
Jonathan Cobb 4 년 전
부모
커밋
d00c29bafb
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. +6
    -0
      bubble-server/src/main/java/bubble/service/dbfilter/EntityIterator.java

+ 6
- 0
bubble-server/src/main/java/bubble/service/dbfilter/EntityIterator.java 파일 보기

@@ -114,6 +114,12 @@ public abstract class EntityIterator implements Iterator<Identifiable> {
add(setLocalStoragePath(cs)); add(setLocalStoragePath(cs));
}); });


} else if (!fullCopy && BubbleNetwork.class.isAssignableFrom(c)) {
// only add the network for the node we are starting
entities.stream()
.filter(e -> e.getUuid().equals(network.getUuid()))
.forEach(this::add);

} else if (Account.class.isAssignableFrom(c)) { } else if (Account.class.isAssignableFrom(c)) {
entities.forEach(e -> add(((Account) e).setPreferredPlan(null))); entities.forEach(e -> add(((Account) e).setPreferredPlan(null)));




불러오는 중...
취소
저장