mirror of
https://github.com/Icinga/icingadb.git
synced 2026-02-18 18:18:00 -05:00
Merge pull request #1058 from Icinga/overdue-sync-redis-key-namespace
overdue: Temporary Key in "icingadb:" Namespace
This commit is contained in:
commit
4e3fe1c0d5
2 changed files with 2 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
-- get_overdues.lua takes the following KEYS:
|
||||
-- * either icinga:nextupdate:host or icinga:nextupdate:service
|
||||
-- * either icingadb:overdue:host or icingadb:overdue:service
|
||||
-- * a random one
|
||||
-- * a temporary one with a random name in the icingadb:temp namespace
|
||||
--
|
||||
-- It takes the following ARGV:
|
||||
-- * the current date and time as *nix timestamp float in seconds
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ func (s Sync) sync(ctx context.Context, objectType string, factory factory, coun
|
|||
|
||||
keys := [3]string{"icinga:nextupdate:" + objectType, "icingadb:overdue:" + objectType, ""}
|
||||
if rand, err := uuid.NewRandom(); err == nil {
|
||||
keys[2] = rand.String()
|
||||
keys[2] = "icingadb:temp:" + rand.String()
|
||||
} else {
|
||||
return errors.Wrap(err, "can't create random UUID")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue