2021-06-03 08:37:05 +02:00
|
|
|
<!--
|
2018-03-15 18:32:45 -07:00
|
|
|
Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2016-06-27 14:56:38 +10:00
|
|
|
|
2021-06-03 08:37:05 +02:00
|
|
|
SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
|
|
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
See the COPYRIGHT file distributed with this work for additional
|
|
|
|
information regarding copyright ownership.
|
|
|
|
-->
|
2018-02-23 09:53:12 +01:00
|
|
|
|
1999-03-11 00:45:31 +00:00
|
|
|
Need way to "dup" an rdataset (i.e. different rdataset handle, same underlying
|
|
|
|
data).
|
|
|
|
|
|
|
|
DB addnode routine should take an rdataset *, which, if non-NULL, would be
|
|
|
|
attached to the added rdataset.
|
|
|
|
|
|
|
|
Need credibility, security status.
|
|
|
|
|
|
|
|
Cache security status in rdataset. Have rdataset supply methods to get/set
|
|
|
|
the security status. For RBTDB, it goes something like this:
|
|
|
|
|
|
|
|
get:
|
|
|
|
if (cached status == pending)
|
|
|
|
lock node lock
|
|
|
|
read rdataset's status
|
|
|
|
unlock node lock
|
|
|
|
update cached status
|
|
|
|
return (cached status)
|
|
|
|
|
|
|
|
set:
|
|
|
|
require that status cannot go backwards (e.g. OK to pending)
|
|
|
|
lock node lock
|
|
|
|
write rdataset's status
|
|
|
|
unlock node lock
|
|
|
|
update cached status
|