1
0
mirror of https://github.com/samba-team/samba.git synced 2025-09-02 01:49:29 +03:00

dbwrap_ctdb: Remove setting of database priority from samba

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
Amitay Isaacs
2016-07-19 17:31:21 +10:00
committed by Amitay Isaacs
parent 6693fa59dc
commit 2ac9d0afa6

View File

@ -1596,7 +1596,6 @@ struct db_context *db_open_ctdb(TALLOC_CTX *mem_ctx,
struct db_ctdb_ctx *db_ctdb;
char *db_path;
struct loadparm_context *lp_ctx;
struct ctdb_db_priority prio;
int32_t cstatus;
int ret;
@ -1645,21 +1644,6 @@ struct db_context *db_open_ctdb(TALLOC_CTX *mem_ctx,
tdb_flags &= TDB_SEQNUM|TDB_VOLATILE|
TDB_MUTEX_LOCKING|TDB_CLEAR_IF_FIRST;
prio.db_id = db_ctdb->db_id;
prio.priority = lock_order;
ret = ctdbd_control_local(
db_ctdb->conn, CTDB_CONTROL_SET_DB_PRIORITY, 0, 0,
make_tdb_data((uint8_t *)&prio, sizeof(prio)),
NULL, NULL, &cstatus);
if ((ret != 0) || (cstatus != 0)) {
DEBUG(1, ("CTDB_CONTROL_SET_DB_PRIORITY failed: %s, "
"%"PRIi32"\n", strerror(ret), cstatus));
TALLOC_FREE(result);
return NULL;
}
if (!result->persistent &&
(dbwrap_flags & DBWRAP_FLAG_OPTIMIZE_READONLY_ACCESS))
{