]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/lua nit: sort RR rank names in debug logs
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 26 Apr 2022 12:55:12 +0000 (14:55 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 18 May 2022 13:49:23 +0000 (13:49 +0000)
I was diffing logs from different runs and got annoyed by the shuffles.

daemon/lua/kres.lua

index 84198be4191c0cf37db030e0266c9413ee7dd159..3d4e7ced23be06e66765f1410c165946c6029455 100644 (file)
@@ -970,6 +970,7 @@ local function rank_tostring(rank)
                        table.insert(names, string.lower(name))
                end
        end
+       table.sort(names) -- pairs() above doesn't give a stable ordering
        return string.format('0%.2o (%s)', rank, table.concat(names, ' '))
 end