]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:cluster_support: add SMB_ASSERT(!lp_clustering()); to cluster_level_activate_latest()
authorStefan Metzmacher <metze@samba.org>
Sat, 18 Jul 2026 13:52:48 +0000 (15:52 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 4 Aug 2026 09:51:32 +0000 (09:51 +0000)
The cluster cases should use cluster_level_activate() instead.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/lib/cluster_support.c

index f88001444463535ec3755ed5467c18027478da78..4876db2346c692f564ece44e2d973f78e183bd06 100644 (file)
@@ -348,6 +348,8 @@ void cluster_level_activate(const struct cluster_level_active *level)
  */
 void cluster_level_activate_latest(void)
 {
+       SMB_ASSERT(!lp_clustering());
+
        global_level_activated = (struct cluster_level_active) {
                .major = supported_ranges[0].major,
                .minor = supported_ranges[0].minor_max,