mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
ctdb-daemon: Store tdb flags just after tdb is opened in ctdb_local_attach()
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
529142a759
commit
f5e53f60b8
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user