]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbdotconf: mark "perfcount module" with substitution="1"
authorRalph Boehme <slow@samba.org>
Tue, 5 Nov 2019 10:24:16 +0000 (11:24 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Nov 2019 10:25:36 +0000 (10:25 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
docs-xml/smbdotconf/misc/perfcountmodule.xml
source3/smbd/perfcount.c

index e1c09488624c42539eb7bfaee45109f3c082a306..e25105fdb42ebfc2236fca65e1e592b77009cb54 100644 (file)
@@ -1,6 +1,7 @@
 <samba:parameter name="perfcount module"
                  context="G"
                  type="string"
+                 substitution="1"
                  xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
 <description>
        <para>This parameter specifies the perfcount backend to be used when monitoring SMB
index 1555ea24b6439acbcb882f5cfa69004f5e784a5b..c46cd3ebe83c232f7234e4e207134596acb13f72 100644 (file)
@@ -174,9 +174,11 @@ void smb_init_perfcount_data(struct smb_perfcount_data *pcd)
 
 bool smb_perfcount_init(void)
 {
+       const struct loadparm_substitution *lp_sub =
+               loadparm_s3_global_substitution();
        char *perfcount_object;
 
-       perfcount_object = lp_perfcount_module(talloc_tos());
+       perfcount_object = lp_perfcount_module(talloc_tos(), lp_sub);
 
        /* don't init */
        if (!perfcount_object || !perfcount_object[0])