s3: Pass tdb_flags to ctdbd when attaching to a db
authorVolker Lendecke <vl@samba.org>
Mon, 25 Oct 2010 09:07:36 +0000 (11:07 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 25 Oct 2010 10:04:58 +0000 (12:04 +0200)
This is required to make ctdb create databases with INCOMPATIBLE_HASH

source3/lib/ctdbd_conn.c

index fbd6395d067c5a660b4ffead6c4e3e9c575b92e8..2a283939a1f5ed25192792fa5b34ef5cb7fb4ec7 100644 (file)
@@ -940,7 +940,7 @@ NTSTATUS ctdbd_db_attach(struct ctdbd_connection *conn,
                               persistent
                               ? CTDB_CONTROL_DB_ATTACH_PERSISTENT
                               : CTDB_CONTROL_DB_ATTACH,
-                              0, 0, data, NULL, &data, &cstatus);
+                              tdb_flags, 0, data, NULL, &data, &cstatus);
        if (!NT_STATUS_IS_OK(status)) {
                DEBUG(0, (__location__ " ctdb_control for db_attach "
                          "failed: %s\n", nt_errstr(status)));