]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os: FileJournal:: fix, uninitialization of FileJournal throttle 3131/head
authorNing Yao <zay11022@gmail.com>
Wed, 10 Dec 2014 04:50:44 +0000 (04:50 +0000)
committerNing Yao <zay11022@gmail.com>
Wed, 10 Dec 2014 04:50:44 +0000 (04:50 +0000)
commit4036b91fc4bde4e5d39f020a1b6f403495837e11
tree83f4bef1cc087fa498f51fd0b45932875f7f2d5d
parentbc2b9f6bf5fa629e127852720d6ad42ef1276b12
os: FileJournal:: fix, uninitialization of FileJournal throttle
Since after firefly, take() in class throttle add if(0 == max.read()) return. If throttle is not initialized with max throttle value, it actually does not work. So initialize it in FileJournal

Signed-off-by: Ning Yao <zay11022@gmail.com>
src/os/FileJournal.h