]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
OSDMap: fix damaging input osdmap from remove_down_temps
authorSage Weil <sage@inktank.com>
Fri, 24 Jan 2014 19:04:37 +0000 (11:04 -0800)
committerSage Weil <sage@inktank.com>
Mon, 27 Jan 2014 22:17:02 +0000 (14:17 -0800)
commit368852f6c0a884b8fdc80a5cd6f9ab72e814d412
treebd2802575e3c089ede6366bc03703f126a4a1244
parentbd54b9841b9255406e56cdc7269bddb419453304
OSDMap: fix damaging input osdmap from remove_down_temps

The default copy constructor copies shared_ptrs do vectors that are then
modified by apply_incremental, which means that the const osdmap argument
isn't in fact const.  Fix this by doing a deep(ish) copy.

Fixes: #7060
Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/OSDMap.cc