aboutsummaryrefslogtreecommitdiff
path: root/icing/file/persistent-hash-map.cc
diff options
context:
space:
mode:
Diffstat (limited to 'icing/file/persistent-hash-map.cc')
-rw-r--r--icing/file/persistent-hash-map.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/icing/file/persistent-hash-map.cc b/icing/file/persistent-hash-map.cc
index 558c242..6936c45 100644
--- a/icing/file/persistent-hash-map.cc
+++ b/icing/file/persistent-hash-map.cc
@@ -716,7 +716,7 @@ libtextclassifier3::Status PersistentHashMap::RehashIfNecessary(
// # of vector elements may be greater than the actual # of entries.
// Therefore, we have to truncate entry_storage_ to the correct size.
if (entry_idx < entry_storage_->num_elements()) {
- entry_storage_->TruncateTo(entry_idx);
+ ICING_RETURN_IF_ERROR(entry_storage_->TruncateTo(entry_idx));
}
info().num_deleted_entries = 0;