Skip to content
This repository
tag: v1488
Fetching contributors…

Cannot retrieve contributors at this time

file 39 lines (30 sloc) 1.665 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
(*
Copyright © 2011 MLstate

This file is part of OPA.

OPA is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License, version 3, as published by
the Free Software Foundation.

OPA is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
more details.

You should have received a copy of the GNU Affero General Public License
along with OPA. If not, see <http://www.gnu.org/licenses/>.
*)
(** Binding of the local db3 db backend to the generic db interface Badop.

Remarks:

Of all the transaction operations, only [prepare] can execute
its continuation asynchronously, as soon as previous, blocking commits
are done with. If the preparation fails, the continuations is still
executed, with the boolean value at [false], indicating failure.

The abort operation, in case of prepared transactions, does not
only abort them, but rolls back any state changes done by prepare.
This functionality is not reflected in the name, because it may only
be useful if a timeout expired between prepare and commit operation
and only if we decide to rollback and not commit in such a situation.
Still, this functionality is nice for low-level tests of rollbacks.

The [read (Badop.Revisions)] query, for now, should return all revisions
for a deleted node and only revisions since the last deletion for
a live node. To be changed in the future.
*)

include Badop.S
Something went wrong with that request. Please try again.