We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e25389 commit 81d9105Copy full SHA for 81d9105
intra/protect/ipmap/ipmap.go
@@ -212,6 +212,11 @@ func (m *ipmap) Clear() {
212
n++
213
}
214
215
+ // Clear the maps after sending all items to the purge channel
216
+ clear(m.m)
217
+ // Don't clear m.p as it contains protected entries
218
+ // Don't clear m.ip as it contains IP address entries
219
+
220
go m.rptr.Clear()
221
// ipaddr type is not "cleared"
222
log.I("ipmap: clear: requested %d/%d sets", n, sz)
0 commit comments