]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: initialize shardedwq osdmap references on startup 16535/head
authorSage Weil <sage@redhat.com>
Tue, 1 Aug 2017 13:58:28 +0000 (09:58 -0400)
committerSage Weil <sage@redhat.com>
Tue, 1 Aug 2017 13:58:28 +0000 (09:58 -0400)
commitc3aa866dcaf3014993167c75412591dba231f9cc
tree8a60122ac2d04b6d9b7e38389663790b9dd78c12
parent4cac1e40b1c3b40f22d5fd2b27d78fcf6c626be1
osd: initialize shardedwq osdmap references on startup

The _process methods assumes the shard osdmap refs are
non-null, but that leaves a window between startup and
the first call to prune_pg_waiters (via consume_map()),
which can lead to a seg fault.

Calling prune during startup, before we have any work,
will initialize those references.

Fixes: http://tracker.ceph.com/issues/20748
Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc