From b4d2b1e4dadbfef2cc09507be41f5d5c3f51150f Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Mon, 21 May 2012 13:00:59 -0700 Subject: [PATCH] monmap: fix rename Update addr_name map appropriately. Signed-off-by: Sage Weil --- src/mon/MonMap.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mon/MonMap.h b/src/mon/MonMap.h index 368b5e0755a4c..77f17b230b696 100644 --- a/src/mon/MonMap.h +++ b/src/mon/MonMap.h @@ -152,6 +152,7 @@ class MonMap { assert(!contains(newname)); mon_addr[newname] = mon_addr[oldname]; mon_addr.erase(oldname); + addr_name[mon_addr[newname]] = newname; } const entity_addr_t& get_addr(const string& n) { -- 2.39.5