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>
Tue, 26 Oct 2010 13:43:31 +0000 (15:43 +0200)
This is required to make ctdb create databases with INCOMPATIBLE_HASH

source3/lib/ctdbd_conn.c

index 101ab30a6d1a2289ad39327c0b8dfbcac944597b..f8d6245d8a1a4c3fa2c54b5da851ce8c93a9a49a 100644 (file)
@@ -886,7 +886,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)));