]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: load all classes on startup
authorSage Weil <sage@inktank.com>
Fri, 26 Jul 2013 20:58:46 +0000 (13:58 -0700)
committerSage Weil <sage@inktank.com>
Fri, 26 Jul 2013 20:59:45 +0000 (13:59 -0700)
commitc24e652d8c5e693498814ebe38c6adbec079ea36
tree16192246b5fb66b8c86d131a2350d03c841f36fd
parentc562b72e703f671127d0ea2173f6a6907c825cd1
osd: load all classes on startup

This avoid creating a wide window between when ceph-osd is started and
when a request arrives needing a class and it is loaded.  In particular,
upgrading the packages in that window may cause linkage errors (if the
class API has changed, for example).

Fixes: #5752
Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Yehuda Sadeh <yehuda@inktank.com>
src/osd/ClassHandler.cc
src/osd/ClassHandler.h
src/osd/OSD.cc