]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
erasure-code: assert the PluginRegistry lock is held when it must 2299/head
authorLoic Dachary <loic-201408@dachary.org>
Sat, 23 Aug 2014 09:07:29 +0000 (11:07 +0200)
committerLoic Dachary <loic-201408@dachary.org>
Thu, 28 Aug 2014 10:17:15 +0000 (12:17 +0200)
commitb059bcdc52e14150dd1673157ba738715f826e32
tree7c51186c6a86d6d86c21a22c8749067b09a653ab
parent3c4220e14de50ee74252f90615e050076b0ce442
erasure-code: assert the PluginRegistry lock is held when it must

Add lock to the preload method and assert that it is held by methods
requiring it. Although preload is called at bootstrap and does not
require the lock, adding it does not hurt and makes the lock policy
clearer to understand.

Signed-off-by: Loic Dachary <loic-201408@dachary.org>
src/erasure-code/ErasureCodePlugin.cc
src/test/erasure-code/TestErasureCodePlugin.cc