Lines Matching refs:current_version

674 	rbtdb_version_t *               current_version;
1214 REQUIRE(rbtdb->current_version != NULL || EMPTY(rbtdb->open_versions));
1217 if (rbtdb->current_version != NULL) {
1220 isc_refcount_decrement(&rbtdb->current_version->references,
1223 UNLINK(rbtdb->open_versions, rbtdb->current_version, link);
1224 isc_refcount_destroy(&rbtdb->current_version->references);
1225 isc_rwlock_destroy(&rbtdb->current_version->rwlock);
1226 isc_mem_put(rbtdb->common.mctx, rbtdb->current_version,
1456 version = rbtdb->current_version;
1505 version->secure = rbtdb->current_version->secure;
1506 version->havensec3 = rbtdb->current_version->havensec3;
1508 version->flags = rbtdb->current_version->flags;
1510 rbtdb->current_version->iterations;
1511 version->hash = rbtdb->current_version->hash;
1513 rbtdb->current_version->salt_length;
1514 memmove(version->salt, rbtdb->current_version->salt,
1530 RWLOCK(&rbtdb->current_version->rwlock,
1532 version->records = rbtdb->current_version->records;
1533 version->bytes = rbtdb->current_version->bytes;
1534 RWUNLOCK(&rbtdb->current_version->rwlock,
2727 cur_version = rbtdb->current_version;
2774 rbtdb->current_version = version;
2789 rbtdb->current_version, link);
2805 if (version != rbtdb->current_version) {
2818 least_greater = rbtdb->current_version;
7177 iszonesecure(db, rbtdb->current_version, rbtdb->origin_node);
7234 iszonesecure(db, rbtdb->current_version, rbtdb->origin_node);
7460 result = add32(rbtdb, node, rbtdb->current_version, newheader,
7490 rbtdb->current_version->records += count;
7491 rbtdb->current_version->bytes += size;
7721 iszonesecure(db, rbtdb->current_version, rbtdb->origin_node);
7988 secure = ISC_TF(rbtdb->current_version->secure == dns_db_secure);
8004 dnssec = ISC_TF(rbtdb->current_version->secure != dns_db_insecure);
8106 rbtversion = rbtdb->current_version;
8143 rbtversion = rbtdb->current_version;
8707 rbtdb->current_version = allocate_version(mctx, 1, 1, ISC_FALSE);
8708 if (rbtdb->current_version == NULL) {
8714 rbtdb->current_version->rbtdb = rbtdb;
8715 rbtdb->current_version->secure = dns_db_insecure;
8716 rbtdb->current_version->havensec3 = ISC_FALSE;
8717 rbtdb->current_version->flags = 0;
8718 rbtdb->current_version->iterations = 0;
8719 rbtdb->current_version->hash = 0;
8720 rbtdb->current_version->salt_length = 0;
8721 memset(rbtdb->current_version->salt, 0,
8722 sizeof(rbtdb->current_version->salt));
8723 result = isc_rwlock_init(&rbtdb->current_version->rwlock, 0, 0);
8725 isc_refcount_destroy(&rbtdb->current_version->references);
8726 isc_mem_put(mctx, rbtdb->current_version,
8727 sizeof(*rbtdb->current_version));
8728 rbtdb->current_version = NULL;
8735 rbtdb->current_version->records = 0;
8736 rbtdb->current_version->bytes = 0;
8743 PREPEND(rbtdb->open_versions, rbtdb->current_version, link);