Lines Matching refs:j2
2090 dns_journal_t *j2 = NULL;
2153 CHECK(journal_open(mctx, newname, ISC_TRUE, ISC_TRUE, &j2));
2214 CHECK(journal_seek(j2, indexend));
2219 CHECK(journal_write(j2, buf, len));
2222 CHECK(journal_fsync(j2));
2227 j2->header.begin.serial = best_guess.serial;
2228 j2->header.begin.offset = indexend;
2229 j2->header.end.serial = j1->header.end.serial;
2230 j2->header.end.offset = indexend + copy_length;
2231 j2->header.sourceserial = j1->header.sourceserial;
2232 j2->header.serialset = j1->header.serialset;
2237 journal_header_encode(&j2->header, &rawheader);
2238 CHECK(journal_seek(j2, 0));
2239 CHECK(journal_write(j2, &rawheader, sizeof(rawheader)));
2240 CHECK(journal_fsync(j2));
2245 current_pos = j2->header.begin;
2246 while (current_pos.serial != j2->header.end.serial) {
2247 index_add(j2, ¤t_pos);
2248 CHECK(journal_next(j2, ¤t_pos));
2254 CHECK(index_to_disk(j2));
2255 CHECK(journal_fsync(j2));
2257 indexend = j2->header.end.offset;
2266 dns_journal_destroy(&j2);
2305 if (j2 != NULL)
2306 dns_journal_destroy(&j2);