]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/PG: store pg_info_t in leveldb (omap), purged_snaps separately
authorDavid Zafman <david.zafman@inktank.com>
Mon, 11 Feb 2013 20:20:23 +0000 (12:20 -0800)
committerDavid Zafman <david.zafman@inktank.com>
Wed, 13 Feb 2013 01:18:25 +0000 (17:18 -0800)
commit188f3ea6867eeb6e950f6efed18d53ff17522bbc
treeeed031ca8987c6abefb8437e3a3603888443734a
parent0e9852798b9e6de0d36fa0f2c074ba56d9d777c7
osd/PG: store pg_info_t in leveldb (omap), purged_snaps separately

Separate the purged_snaps portion of pg_info_t (the one that gets big).

Feature #3891: osd: move purged_snaps out of info

Add a separate dirty_big_info flag so that we only update the pginfo
"biginfo" file if that state changes.  This lets us avoid the cost in the
general case, like a regular PG write.

Add LEVELDBINFO feature

Put info, biginfo in leveldb
Move epoch to omap

Feature #3892: osd: move pg info into leveldb

Signed-off-by: Sage Weil <sage@inktank.com>
Signed-off-by: David Zafman <david.zafman@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
Reviewed-by: Sam Just <sam.just@inktank.com>
src/osd/OSD.cc
src/osd/OSD.h
src/osd/PG.cc
src/osd/PG.h
src/osd/osd_types.h
src/tools/ceph-filestore-dump.cc