It's not transactional in the sense of database documents, since the
files are stored in the file system and not the database. The files are
stored when you call admin:save-configuration(), so you can make
multiple changes and then save once at the end.
let $config := admin:get-configuration()
let $config := admin:add-forest($config, ...)
let $config := admin:add-forest($config, ...)
return admin:save-configuration($config)
If a host is down when the configuration is changed, it'll sync to the
new version when it comes back up and rejoins the cluster.
Wayne.
On Thu, 2009-07-30 at 05:41 -0700, Geert Josten wrote:
> Hi Stan,
>
> I don't think that this admin function is a so-called atomic function,
> so I would expect only one database.xml update per host, even for
> multiple attach-forest calls, as long as there are done in the same
> request/transaction.
>
> But even if it is atomic, then it *should* be atomic across the
> cluster.
>
> On the other hand, I am not a Mark Logic expert, so perhaps someone
> from Mark Logic cares to comment? Otherwise, send a message to
> [email protected].
>
> By the way, the MarkLogic Server Admin site runs on plain Xquery as
> well. So you should be able to achieve exactly the same by calling
> those admin functions directly.
>
> Kind regards,
> Geert
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general