]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/PGLog: delay populating PG log hashmaps 6425/head
authorPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Thu, 15 Oct 2015 06:50:36 +0000 (08:50 +0200)
committerPiotr Dałek <piotr.dalek@ts.fujitsu.com>
Wed, 13 Jan 2016 09:20:55 +0000 (10:20 +0100)
commitb858e869e78927dccebaa350d246bd74af7f1de9
treea788b862708c943b2c49681b40154d6c6a678ffb
parent9865dfd6223911bcd8f5ecf39140be65d842a071
osd/PGLog: delay populating PG log hashmaps

When booting up OSD, it loads all PGs and their respective logs. To speed
up processing later, these logs are accompanied by separate unordered_maps
which are also populated during PG load.
Delay that until we actually need to access it, so we don't occupy too much
memory right from start - and when we need it, populate just the map that
we want to use, not all 3 of them at once.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
src/osd/PGLog.cc
src/osd/PGLog.h