diff options
author | Amitay Isaacs <amitay@gmail.com> | 2017-07-19 12:04:35 +1000 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2017-07-24 22:00:38 +0200 |
commit | 961266e551ecb7342d23bdaa79ed520aa0eedf5f (patch) | |
tree | 96b81ea969ae8ab1005d4ee424d87070f717e5ac /source3/lib | |
parent | 74393944095b361859265d26d1dc07b2cc808241 (diff) | |
download | samba-961266e551ecb7342d23bdaa79ed520aa0eedf5f.tar.gz |
dbwrap_ctdb: Fix calculation of persistent flag
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12891
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit f7daa453045c787ddab6e04c1fdaa386c231371f)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/dbwrap/dbwrap_ctdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/dbwrap/dbwrap_ctdb.c b/source3/lib/dbwrap/dbwrap_ctdb.c index 6bdaab000a9..a5ac2b27074 100644 --- a/source3/lib/dbwrap/dbwrap_ctdb.c +++ b/source3/lib/dbwrap/dbwrap_ctdb.c @@ -1780,7 +1780,7 @@ struct db_context *db_open_ctdb(TALLOC_CTX *mem_ctx, char *db_path; struct loadparm_context *lp_ctx; TDB_DATA data; - bool persistent = (tdb_flags & TDB_CLEAR_IF_FIRST); + bool persistent = (tdb_flags & TDB_CLEAR_IF_FIRST) == 0; int32_t cstatus; int ret; |