]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: fix pg_temp updates
authorSage Weil <sage@inktank.com>
Mon, 21 May 2012 16:45:23 +0000 (09:45 -0700)
committerSage Weil <sage@inktank.com>
Tue, 22 May 2012 03:40:42 +0000 (20:40 -0700)
commitebcfd56b7a954918bc7d53e62fb913f81794f766
tree61d254846558e23906bbef993092cf372f641509
parenta1a8550e50ff977e0edb8080e9744cfdb416d154
libceph: fix pg_temp updates

Usually, we are adding pg_temp entries or removing them.  Occasionally they
update.  In that case, osdmap_apply_incremental() was failing because the
rbtree entry already exists.

Fix by removing the existing entry before inserting a new one.

Fixes http://tracker.newdream.net/issues/2446

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
net/ceph/osdmap.c