Lines Matching defs:dbversion
227 ns_dbversion_t *dbversion, *dbversion_next;
230 for (dbversion = ISC_LIST_HEAD(client->query.freeversions), i = 0;
231 dbversion != NULL;
232 dbversion = dbversion_next, i++)
234 dbversion_next = ISC_LIST_NEXT(dbversion, link);
240 ISC_LIST_UNLINK(client->query.freeversions, dbversion,
242 isc_mem_put(client->mctx, dbversion,
243 sizeof(*dbversion));
262 ns_dbversion_t *dbversion, *dbversion_next;
276 for (dbversion = ISC_LIST_HEAD(client->query.activeversions);
277 dbversion != NULL;
278 dbversion = dbversion_next) {
279 dbversion_next = ISC_LIST_NEXT(dbversion, link);
280 dns_db_closeversion(dbversion->db, &dbversion->version,
282 dns_db_detach(&dbversion->db);
284 dbversion, link);
498 ns_dbversion_t *dbversion;
501 dbversion = isc_mem_get(client->mctx, sizeof(*dbversion));
502 if (dbversion != NULL) {
503 dbversion->db = NULL;
504 dbversion->version = NULL;
506 dbversion, link);
525 ns_dbversion_t *dbversion;
532 dbversion = ISC_LIST_HEAD(client->query.freeversions);
533 INSIST(dbversion != NULL);
534 ISC_LIST_UNLINK(client->query.freeversions, dbversion, link);
536 return (dbversion);
574 ns_dbversion_t *dbversion;
581 for (dbversion = ISC_LIST_HEAD(client->query.activeversions);
582 dbversion != NULL;
583 dbversion = ISC_LIST_NEXT(dbversion, link)) {
584 if (dbversion->db == db)
588 if (dbversion == NULL) {
593 dbversion = query_getdbversion(client);
594 if (dbversion == NULL)
596 dns_db_attach(db, &dbversion->db);
597 dns_db_currentversion(db, &dbversion->version);
598 dbversion->queryok = ISC_FALSE;
600 dbversion, link);
605 return (dbversion);
617 ns_dbversion_t *dbversion;
648 dbversion = query_findversion(client, db, &new_zone);
649 if (dbversion == NULL) {
656 } else if (!dbversion->queryok) {
761 dbversion->queryok = ISC_TRUE;
765 *versionp = dbversion->version;