summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-01-13 23:51:34 +0100
committerKarolin Seeger <kseeger@samba.org>2010-04-01 09:39:15 +0200
commit1747d23a5525c2a4e8060bff737ef7dd79678a0b (patch)
tree1c66733719364a9c0a7ab466a39ca711e3fcc2a3 /source3/lib
parent249d7bab417a51fbdc1b84c5d84aa81ccdb3e94b (diff)
downloadsamba-1747d23a5525c2a4e8060bff737ef7dd79678a0b.tar.gz
s3:dbwrap_ctdb: fix brown paperbag bug in ctdb_transaction_commit.
I carefully prepared the return value only to "return 0;" at the bottom. :-( This may well have hit us for instance in the nested cancel case and produced random errors. Michael (cherry picked from commit 1d594bd734a2f7146ed52872456a16c5e41816f1) (cherry picked from commit 7fc2b612b8f77751effadcd53800c96e83e76418)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/dbwrap_ctdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/dbwrap_ctdb.c b/source3/lib/dbwrap_ctdb.c
index 4e97d26ae82..c0b5fd51ed5 100644
--- a/source3/lib/dbwrap_ctdb.c
+++ b/source3/lib/dbwrap_ctdb.c
@@ -840,7 +840,7 @@ again:
done:
h->ctx->transaction = NULL;
talloc_free(h);
- return 0;
+ return ret;
}