diff options
author | Samuel Just <sam.just@inktank.com> | 2013-03-05 14:34:47 -0800 |
---|---|---|
committer | Samuel Just <sam.just@inktank.com> | 2013-03-13 19:45:12 -0700 |
commit | 8631e925796f32d51bc948a9a9edf7830aef3242 (patch) | |
tree | d8a90700dd31018eaf4284771db01232643ad479 /src/osd/OSD.h | |
parent | 8db029db402e001d0985e168b749959c47831aa3 (diff) | |
download | ceph-8631e925796f32d51bc948a9a9edf7830aef3242.tar.gz |
osd/: Integrate SnapMapper with OSD
- SnapTrimmer now uses SnapMapper to get the next object to trim
- Entries for a snap are implicitely removed from SnapMapper when
the last object is trimmed, so no need for the adjust_local_snaps
logic.
- Scrub now compares the object_info snaps set on the object attr
with the version stored in the SnapMapper.
Signed-off-by: Samuel Just <sam.just@inktank.com>
Diffstat (limited to 'src/osd/OSD.h')
-rw-r--r-- | src/osd/OSD.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/osd/OSD.h b/src/osd/OSD.h index 23d2537b745..1ee2750c444 100644 --- a/src/osd/OSD.h +++ b/src/osd/OSD.h @@ -465,6 +465,13 @@ public: return hobject_t(sobject_t(object_t(foo), 0)); } + static hobject_t make_snapmapper_oid() { + return hobject_t( + sobject_t( + object_t("snapmapper"), + 0)); + } + static hobject_t make_pg_log_oid(pg_t pg) { stringstream ss; ss << "pglog_" << pg; |