commit | 884cf3e55f77ab1a5f26dc7202ce21771062eae6 | [log] [tgz] |
---|---|---|
author | ILYA Khlopotov <iilyak@ca.ibm.com> | Fri Jul 29 14:32:02 2016 -0700 |
committer | ILYA Khlopotov <iilyak@ca.ibm.com> | Mon Aug 01 10:50:28 2016 -0700 |
tree | 680b040a2ba5f8a348627108b39a299caf06713f | |
parent | 05247a26019ce5416e13ef80a12c307bdc790ee4 [diff] |
Inject random delays in scan_all_dbs couch_replication_server scans filesystem to find all _replication databases. For every database found it does gen_server:cast(Server, {resume_scan, DbName}) Extract independent process where we do gen_server:cast after a random delay. This effectively removes stampede and randomizes the order in which we process _replication databases. COUCHDB-3088