s3:dbwrap_ctdb: fix fetch/fetch_locked when samba is built against old ctdb
authorMichael Adam <obnox@samba.org>
Fri, 29 Jun 2012 08:39:07 +0000 (10:39 +0200)
committerMichael Adam <obnox@samba.org>
Fri, 29 Jun 2012 13:21:17 +0000 (15:21 +0200)
commit9d11277337113bad885240f2fc53c692c1be99bf
treebdd9023095ebba42fa38d47599cd03dce6e8042c
parent19941a90548de20ca0deda0b7b16135e7989b77f
s3:dbwrap_ctdb: fix fetch/fetch_locked when samba is built against old ctdb

The introduction of read only copies has broken the algorithm for
deteting whether we can use the local record copy for fetch_locked
and fetch: For fetch locked the new code always uses the local copy
if there is one...

This patch re-establish the original algorithm for the build against
a ctdb without read only record copies.

Reported-by: Gregor Beck <gbeck@sernet.de>
source3/lib/dbwrap/dbwrap_ctdb.c