From: Haomai Wang Date: Fri, 21 Nov 2014 09:25:06 +0000 (+0800) Subject: GenericObjectMap: Fix typo X-Git-Tag: v0.90~53^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=25fe088b752d753d152c8a0c1fa260585cb7e7c5;p=ceph.git GenericObjectMap: Fix typo Signed-off-by: Haomai Wang --- diff --git a/src/os/GenericObjectMap.cc b/src/os/GenericObjectMap.cc index 1b08ed207bd3e..e2c8a27179178 100644 --- a/src/os/GenericObjectMap.cc +++ b/src/os/GenericObjectMap.cc @@ -225,7 +225,7 @@ bool GenericObjectMap::parse_header_key(const string &long_name, current = ++end; for ( ; end != long_name.end() && *end != GHOBJECT_KEY_SEP_C && *end != GHOBJECT_KEY_ENDING; ++end) ; - if (*end == long_name.end()) + if (end == long_name.end()) return false; string snap_str(current, end); @@ -241,7 +241,7 @@ bool GenericObjectMap::parse_header_key(const string &long_name, if (*end != GHOBJECT_KEY_ENDING) { current = ++end; for ( ; end != long_name.end() && *end != GHOBJECT_KEY_SEP_C; ++end) ; - if (end != GHOBJECT_KEY_SEP_C) + if (*end != GHOBJECT_KEY_SEP_C) return false; genstring = string(current, end);