aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJakob Borg <jakob@kastelo.net>2020-01-27 17:31:17 +0100
committerGitHub <noreply@github.com>2020-01-27 17:31:17 +0100
commitd91c4b010b6e01c1e544e4ffe3ed8138a56db88a (patch)
tree3a2431553ea3591579175e626d83c58a8ad98a83 /test
parent84920bff63d53e8d6a8c5b15c71baf733106e529 (diff)
downloadsyncthing-d91c4b010b6e01c1e544e4ffe3ed8138a56db88a.tar.gz
syncthing-d91c4b010b6e01c1e544e4ffe3ed8138a56db88a.zip
lib/config, lib/model: Limit concurrent pulls (fixes #5914) (#6290)
Adds a new folder state "Waiting to Sync" in the same vein as the existing "Waiting to Scan". This vastly improves performances in the rare cases when there are lots and lots of folders operating.
Diffstat (limited to 'test')
-rwxr-xr-xtest/folders.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/folders.sh b/test/folders.sh
new file mode 100755
index 000000000..52cfb62a8
--- /dev/null
+++ b/test/folders.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+for ((id=0;id<200;id++)); do
+cat <<EOT
+ <folder id="$id" label="" path="$id?maxsize=1000&amp;seed=$id" type="sendreceive" rescanIntervalS="3600" fsWatcherEnabled="false" fsWatcherDelayS="10" ignorePerms="false" autoNormalize="true">
+ <filesystemType>fake</filesystemType>
+ <device id="I6KAH76-66SLLLB-5PFXSOA-UFJCDZC-YAOMLEK-CP2GB32-BV5RQST-3PSROAU" introducedBy=""></device>
+ <device id="MRIW7OK-NETT3M4-N6SBWME-N25O76W-YJKVXPH-FUMQJ3S-P57B74J-GBITBAC" introducedBy=""></device>
+ </folder>
+EOT
+done \ No newline at end of file