|
576 |
|
576 |
|
577 |
/* if no ID is set, assume the database has just been initialized */ |
577 |
/* if no ID is set, assume the database has just been initialized */ |
578 |
rv = cache_get_master_entry(&cache_master_entry); |
578 |
rv = cache_get_master_entry(&cache_master_entry); |
579 |
if (rv == MDB_NOTFOUND) { |
579 |
if (rv) { |
580 |
cache_get_int("notifier_id", &cache_master_entry.id, -1); |
580 |
cache_get_int("notifier_id", &cache_master_entry.id, -1); |
581 |
if (cache_master_entry.id == -1) { |
581 |
if (cache_master_entry.id == -1) { |
582 |
rv = notifier_get_id_s(NULL, &cache_master_entry.id); |
582 |
rv = notifier_get_id_s(NULL, &cache_master_entry.id); |