mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Shrink the geo_maxmind storage after garbage collection.
This commit is contained in:
parent
edd2446081
commit
87f66dda48
@ -98,6 +98,7 @@ public:
|
||||
|
||||
void clear() { vect.clear(); }
|
||||
void reserve(size_type n) { vect.reserve(n); }
|
||||
void shrink_to_fit() { vect.shrink_to_fit(); }
|
||||
|
||||
iterator begin() { return vect.begin(); }
|
||||
iterator end() { return vect.end(); }
|
||||
|
@ -209,6 +209,7 @@ public:
|
||||
iter = geoapi.locations.erase(iter);
|
||||
}
|
||||
}
|
||||
geoapi.locations.shrink_to_fit();
|
||||
}
|
||||
|
||||
void OnChangeRemoteAddress(LocalUser* user) override
|
||||
|
Loading…
x
Reference in New Issue
Block a user