aboutsummaryrefslogtreecommitdiffstats
path: root/syz-hub
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2018-01-22 13:55:29 +0100
committerDmitry Vyukov <dvyukov@google.com>2018-01-22 13:55:29 +0100
commit228e3d951cef1d13723fd60ab957a9c81415c84a (patch)
treef45ed2307956d8438f083615359e2214f9e58b65 /syz-hub
parent40a660267587e55dde5fdbcda128b901e1bf7f49 (diff)
syz-hub: don't send all repros to new managers
We how have thousands of repros, running all of them on new managers will take ethernity.
Diffstat (limited to 'syz-hub')
-rw-r--r--syz-hub/state/state.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/syz-hub/state/state.go b/syz-hub/state/state.go
index f91efbeb8..d04377166 100644
--- a/syz-hub/state/state.go
+++ b/syz-hub/state/state.go
@@ -124,6 +124,9 @@ func (st *State) createManager(name string) (*Manager, error) {
st.corpusSeq = mgr.corpusSeq
}
mgr.reproSeq = loadSeqFile(mgr.reproSeqFile)
+ if mgr.reproSeq == 0 {
+ mgr.reproSeq = st.reproSeq
+ }
if st.reproSeq < mgr.reproSeq {
st.reproSeq = mgr.reproSeq
}
@@ -150,7 +153,7 @@ func (st *State) Connect(name string, fresh bool, calls []string, corpus [][]byt
mgr.Connected = time.Now()
if fresh {
mgr.corpusSeq = 0
- mgr.reproSeq = 0
+ mgr.reproSeq = st.reproSeq
}
saveSeqFile(mgr.corpusSeqFile, mgr.corpusSeq)
saveSeqFile(mgr.reproSeqFile, mgr.reproSeq)