osd_types: fix off by one error in is_temp

Signed-off-by: Samuel Just <samuel.just@dreamhost.com>
Reviewed-by: Gregory Farnum <gregory.farnum@dreamhost.com>
This commit is contained in:
Samuel Just 2012-04-10 14:55:50 -07:00
parent 31f16a4c57
commit 4f030e1b22

View File

@ -258,7 +258,7 @@ bool coll_t::is_temp(pg_t& pgid) const
const char *tmp_start = strchr(cstr, '_');
if (!tmp_start)
return false;
if (strncmp(tmp_start, "_TEMP", 4) == 0)
if (strncmp(tmp_start, "_TEMP", 5) == 0)
return true;
return false;
}