mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
added another INSIST() to dns_dbiterator_pause() as suggested by Bob
This commit is contained in:
parent
2883651930
commit
d94b209b95
@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: rbtdb.c,v 1.142 2001/01/12 18:56:40 gson Exp $ */
|
/* $Id: rbtdb.c,v 1.143 2001/01/12 20:11:28 gson Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Principal Author: Bob Halley
|
* Principal Author: Bob Halley
|
||||||
@ -4667,6 +4667,7 @@ dbiterator_pause(dns_dbiterator_t *iterator) {
|
|||||||
return (ISC_R_SUCCESS);
|
return (ISC_R_SUCCESS);
|
||||||
|
|
||||||
if (node != NULL) {
|
if (node != NULL) {
|
||||||
|
INSIST(rbtdbiter->tree_locked);
|
||||||
LOCK(&rbtdb->node_locks[node->locknum].lock);
|
LOCK(&rbtdb->node_locks[node->locknum].lock);
|
||||||
new_reference(rbtdb, node);
|
new_reference(rbtdb, node);
|
||||||
UNLOCK(&rbtdb->node_locks[node->locknum].lock);
|
UNLOCK(&rbtdb->node_locks[node->locknum].lock);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user