[PATCH] dbwrap_ctdb: open locally with TDB_VOLATILE if requested

Michael Adam obnox at samba.org
Sat May 24 05:38:49 MDT 2014


pushed 

On 2014-05-22 at 15:57 -0700, Christof Schmitt wrote:
> >From 1f4f97260c80aa7d9ee9f9bd265bf0d6620d2152 Mon Sep 17 00:00:00 2001
> From: Volker Lendecke <vl at samba.org>
> Date: Mon, 17 Mar 2014 12:21:28 +0100
> Subject: [PATCH] dbwrap_ctdb: open locally with TDB_VOLATILE if requested
> 
> Signed-off-by: Volker Lendecke <vl at samba.org>
> Reviewed-by: Christof Schmitt <cs at samba.org>
> ---
>  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 7cf90ce..ca33c8f 100644
> --- a/source3/lib/dbwrap/dbwrap_ctdb.c
> +++ b/source3/lib/dbwrap/dbwrap_ctdb.c
> @@ -1616,7 +1616,7 @@ struct db_context *db_open_ctdb(TALLOC_CTX *mem_ctx,
>  	result->lock_order = lock_order;
>  
>  	/* only pass through specific flags */
> -	tdb_flags &= TDB_SEQNUM;
> +	tdb_flags &= TDB_SEQNUM|TDB_VOLATILE;
>  
>  	/* honor permissions if user has specified O_CREAT */
>  	if (open_flags & O_CREAT) {
> -- 
> 1.7.1
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20140524/6838ff97/attachment.pgp>


More information about the samba-technical mailing list