CTDB always uses tdb flags TDB_DEFAULT when opening the database in not-first open case (or the subsequent callers). However, this does not work with tdb databases that are created with TDB_MUTEX_LOCKING. tdb_open_ex() requires tdb flags to explicitly mention TDB_MUTEX_LOCKING.
Created attachment 10559 [details] Patch for v4-2-test (depends on the fix for bug #11004)
Pushed to autobuild-v4-2-test.
Pushed to v4-2-test. Closing out bug report. Thanks!