]> git.ipfire.org Git - thirdparty/bind9.git/commit
Wait until a cache dump completes instead of waiting for a fixed amount of time
authorMichał Kępień <michal@isc.org>
Tue, 20 Feb 2018 12:59:28 +0000 (13:59 +0100)
committerMichał Kępień <michal@isc.org>
Tue, 20 Feb 2018 12:59:28 +0000 (13:59 +0100)
commit2bbff06d3631653fcea95e223da47aea0f9cdf0b
tree1d05a0102d7390eff7fa3d6c0f72dda6a79c4eea
parentaeea1faf0191f8f693393ee088272f893fc4faa1
Wait until a cache dump completes instead of waiting for a fixed amount of time

Dumping the cache is an asynchronous operation, so sleeping for a fixed
amount of time after running "rndc dumpdb" is imperfect as dumping cache
contents may take longer than expected on slower machines.  Instead of
always sleeping for 1 second, wait until the "; Dump complete" line
appears in the dump or 10 seconds pass, whichever comes first.
bin/tests/system/cacheclean/tests.sh