0e2fef977f
We will be needing an infrequent chore to check which nodes are in the reverify queue and synchronize that set with the 'contained' field in the nodes db, since it is easily possible for them to get out of sync. (We can't require that the reverification queue table be in the same database as the nodes table, so maintaining consistency with SQL transactions is out. Plus, even if they were in the same database, using such SQL transactions to maintain consistency would be slow and unwieldy.) This commit adds a method to the overlay allowing the caller to set the contained status of all nodes in the nodes table at once. This is valid because our definition of "contained" now depends solely on whether a node appears at least once in the reverification queue. Only rows whose contained field does not match the expectation will be updated; the contained timestamp will not be updated for a node which is supposed to be contained and was already contained. Change-Id: I8cabe56ad897b6027e11aa5b17175295391aa3ac |
||
---|---|---|
.. | ||
offlinenodes | ||
straynodes | ||
benchmark_test.go | ||
checkin_test.go | ||
config.go | ||
db_test.go | ||
downloadselection_test.go | ||
downloadselection.go | ||
peeridentities_test.go | ||
peeridentities.go | ||
piececount_test.go | ||
selection_test.go | ||
service_test.go | ||
service.go | ||
statdb_test.go | ||
uploadselection_test.go | ||
uploadselection.go |