From f5e53f60b8af0239070e6e43c10d289c7a5ca174 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Thu, 2 Mar 2017 14:52:00 +1100 Subject: ctdb-daemon: Store tdb flags just after tdb is opened in ctdb_local_attach() Signed-off-by: Amitay Isaacs Reviewed-by: Martin Schwenke --- ctdb/server/ctdb_ltdb_server.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ctdb') diff --git a/ctdb/server/ctdb_ltdb_server.c b/ctdb/server/ctdb_ltdb_server.c index 8a364fe4894..6ae92f52a97 100644 --- a/ctdb/server/ctdb_ltdb_server.c +++ b/ctdb/server/ctdb_ltdb_server.c @@ -960,6 +960,10 @@ again: } } + /* remember the flags the client has specified */ + tdb_add_flags(ctdb_db->ltdb->tdb, tdb_flags); + + /* set up a rb tree we can use to track which records we have a fetch-lock in-flight for so we can defer any additional calls for the same record. @@ -1214,9 +1218,6 @@ int32_t ctdb_control_db_attach(struct ctdb_context *ctdb, TDB_DATA indata, return -1; } - /* remember the flags the client has specified */ - tdb_add_flags(db->ltdb->tdb, tdb_flags); - outdata->dptr = (uint8_t *)&db->db_id; outdata->dsize = sizeof(db->db_id); -- cgit v1.2.1