Skip to content

Commit e810774

Browse files
authored
Add return statement to MappedCache::size function
1 parent 5b679f7 commit e810774

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/app/models/key-models/rowcache.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,11 @@ class MappedCache {
7676
}
7777

7878
unsigned long long size() const {
79-
unsigned long long size = 0;
79+
unsigned long long cacheSize = 0;
8080
for (auto cachePage : m_mapping) {
81-
size += cachePage.size();
81+
cacheSize += cachePage.size();
8282
}
83+
return cacheSize;
8384
}
8485

8586
void clear() {

0 commit comments

Comments
 (0)