]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: make coll_t::is_pg() correctly validate the snapid suffix
authorSage Weil <sage@inktank.com>
Sun, 10 Feb 2013 05:36:58 +0000 (21:36 -0800)
committerSamuel Just <sam.just@inktank.com>
Tue, 12 Feb 2013 18:15:03 +0000 (10:15 -0800)
commit66ddffb721eb137d9859caee0b0a4c6b88a7692c
tree7314d53b4c1c3a58151a89c643ab160723017a73
parent7edf8acfc1ed03e9d5add6a5f47a766663818b78
osd: make coll_t::is_pg() correctly validate the snapid suffix

The strtoull() man page suggests resetting errno and using that to
check for a parsing error.  This ensures the OSD::load_pgs() callers are
getting what they expect (now that they aren't relying on the broken
behavior).  The other callers in the os/* code is moved to a different
method that ignores the suffix.

Signed-off-by: Sage Weil <sage@inktank.com>
src/osd/osd_types.cc