Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the KiokuDB CPAN distribution.

Report information
The Basics
Id: 58166
Status: open
Priority: 0/
Queue: KiokuDB

Owner: Nobody in particular
Requestors: hanenkamp [...]

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)

Subject: Expose txn_begin/commit/rollback
Download (untitled) / with headers
text/plain 260b
While txn_do() is definitely a best practice, it is sometimes easier to use txn_begin/commit/rollback. These are provided by back-ends implementing the TXN role, but is not provided by KiokuDB or KiokuDB::Role::API to us, the little people. Cheers, Sterling
Subject: Re: [ #58166] Expose txn_begin/commit/rollback
Date: Sat, 5 Jun 2010 19:35:24 +0300
To: bug-KiokuDB [...]
From: Yuval Kogman <nuffin [...]>
Download (untitled) / with headers
text/plain 171b
FWIW, I see $dir->backend as perfectly fair game for the end user, since it supports various extensions to the API. That said, I'll add these to the next release anyway.
Download (untitled) / with headers
text/plain 456b
Bah, now I remembered why I didn't expose these. txn_begin can return a txn handle which txn_commit/rollback can expect to get back as an argument. I think I'm going to roll back this change because the BDB backend relies on this and it's going to be hard to expect the users to comply actually comply with this. If you'd like to implement a stack in to manage this, then be my guest, but please make it pretty anal about providing errors)

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to