mirror of
https://github.com/ceph/ceph
synced 2025-03-06 08:20:12 +00:00
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:
parent
31f16a4c57
commit
4f030e1b22
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user