[bind10-dev] Creation of zone in DB (again)
Shane Kerr
shane at isc.org
Thu Jan 31 13:49:33 UTC 2013
Michal,
On Tuesday, 2013-01-29 12:00:08 +0100,
Michal 'vorner' Vaner <michal.vaner at nic.cz> wrote:
> I believe we should be creating the new zone inside the same
> transaction and commit it together with the data inside it. After
> all, that's what transactions are for. But when we talked about the
> interface to add new zones, we were in hurry, so we didn't finish the
> discussions about the interface. We should resume it now.
I agree.
> I see two options:
> • getUpdater gets a flag „canCreate“, which would allow it to create
> a new zone.
> • The createZone returns updater directly.
>
> Any other options? Or, any option how to do it properly without a
> transaction?
Maybe the DataSourceClient() should not be implicitly handling
transactions? We could add something to allow commit() / rollback()
there.
Cheers,
--
Shane
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20130131/32d270e2/attachment.bin>
More information about the bind10-dev
mailing list