]> 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)
committerMark Andrews <marka@isc.org>
Wed, 21 Feb 2018 00:28:16 +0000 (11:28 +1100)
commit580fb63a689e52bb28fcfe623b1d68e35b098dc5
treec19524260a74146209ed888844fe7791d4e66cb7
parent44e946e9e9f2cc6087d8902217de7312bf5662cb
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.

(cherry picked from commit 2bbff06d3631653fcea95e223da47aea0f9cdf0b)
(cherry picked from commit e617b915273730b340369be034f694ea1441fd41)
bin/tests/system/cacheclean/tests.sh