Ensure we set subobj.BACKEND_MOD for the 'partitions only' case.
authorAndrew Bartlett <abartlet@samba.org>
Thu, 24 Jan 2008 05:25:35 +0000 (16:25 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 24 Jan 2008 05:25:35 +0000 (16:25 +1100)
Andrew Bartlett
(This used to be commit be5eb2da241452ccc0526f4f115aa44c0793c351)

source4/scripting/libjs/provision.js

index 4cb717bde876bb99c9a7d79d7c66b1e8f9747133..e71498010cfdb419e753c8e37f8cf154311c1d98 100644 (file)
@@ -524,6 +524,10 @@ function provision_become_dc(subobj, message, erase, paths, session_info)
        var ok = provision_fix_subobj(subobj, paths);
        assert(ok);
 
+       if (subobj.BACKEND_MOD == undefined) {
+               subobj.BACKEND_MOD = "repl_meta_data";
+       }
+
        info.subobj = subobj;
        info.message = message;
        info.session_info = session_info;