diff options
Diffstat (limited to 'src/common/SloppyCRCMap.cc')
-rw-r--r-- | src/common/SloppyCRCMap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/SloppyCRCMap.cc b/src/common/SloppyCRCMap.cc index ec9cbdf53a6..f82a70701d2 100644 --- a/src/common/SloppyCRCMap.cc +++ b/src/common/SloppyCRCMap.cc @@ -73,7 +73,7 @@ void SloppyCRCMap::truncate(uint64_t offset) offset -= offset % block_size; std::map<uint64_t,uint32_t>::iterator p = crc_map.lower_bound(offset); while (p != crc_map.end()) - crc_map.erase(p++); + p = crc_map.erase(p); } void SloppyCRCMap::zero(uint64_t offset, uint64_t len) |