[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: Thread cursor sharing
- To: openldap-technical@openldap.org
- Subject: Re: Thread cursor sharing
- From: Kristoffer Sjögren <stoffe@gmail.com>
- Date: Thu, 2 Jul 2015 00:25:20 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=bCucKrmiQwApP/7JgMKoT6ztPD2wgFGdXMY7BLbDoW4=; b=sFkYdd+EXFuDvXyErhVcqRkpNQRFIiVHVHja0XQyDIuegpgU2JfVmP0w/qwpFulH/r Nc8sxpK6ASIR5nuWyYQqdHMo6RoUJPnsLQTzKkPhPoVW08UtVQDUsYuqs+t7OHIthhQg Cjf9cEvHenizQBYNJU2W6hCynASdM27tNrB6GIpOFn5g16rRdVkbfwdIcoGTR8mPJLs8 isAQaPo4tRzXt69HVErIb4yTZVszqDP86hWSBR7tU1nkLOnDAv1SzLzf2p5texuKYIbO FIYs5ayyF9yhxaC8tDzHL0OE0b9/E2R3YGB4t72xf9+CJMGuAznRmzEa0jQrSo8a2QuC 5OOA==
- In-reply-to: <CADSBNAhG=h1Kctg_SzHqKzXj_V=2x-N3sXRUOsw1YtfJ2mbNcA@mail.gmail.com>
- References: <CADSBNAihtRo-N+GRzX3KnOW17kF4aj_F8GFqfPdFFKODLH0Ywg@mail.gmail.com> <CADSBNAhG=h1Kctg_SzHqKzXj_V=2x-N3sXRUOsw1YtfJ2mbNcA@mail.gmail.com>
Thanks for the great docs Howard and sorry, i'm an idiot.
The docs clearly state that "Cursors may not span transactions" in
case of MDB_NOTLS.
Good documentation is rare unfortunately, which brought me into the
bad habit of not reading it thoroughly.
On Wed, Jul 1, 2015 at 9:36 PM, Kristoffer Sjögren <stoffe@gmail.com> wrote:
> Sorry, the docs clearly state that "transaction and its cursors must
> only be used by a single thread".
>
> But, it seems that transactions can be shared between threads whereas
> cursors cannot. A cursor created by a shared transaction seems fine?
>
>
> On Wed, Jul 1, 2015 at 9:23 PM, Kristoffer Sjögren <stoffe@gmail.com> wrote:
>> Hi
>>
>> Simple question, is thread cursor sharing allowed?
>>
>> Cheers,
>> -Kristoffer