mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-10-08 03:47:51 +00:00
Merge pull request #674 from travisturner/container-corrupt
stop setting N on a frozen container
This commit is contained in:
commit
c5e9b8d917
1 changed files with 0 additions and 3 deletions
|
|
@ -3287,7 +3287,6 @@ func (c *Container) arrayRemove(v uint16) (*Container, bool) {
|
|||
}
|
||||
// removing the last item? we can just return the empty container.
|
||||
if c.N() == 1 {
|
||||
c.n = 0
|
||||
return nil, true
|
||||
}
|
||||
c = c.Thaw()
|
||||
|
|
@ -3304,7 +3303,6 @@ func (c *Container) bitmapRemove(v uint16) (*Container, bool) {
|
|||
}
|
||||
// removing the last item? we can just return the empty container.
|
||||
if c.N() == 1 {
|
||||
c.n = 0
|
||||
return nil, true
|
||||
}
|
||||
c = c.Thaw()
|
||||
|
|
@ -3330,7 +3328,6 @@ func (c *Container) runRemove(v uint16) (*Container, bool) {
|
|||
}
|
||||
// removing the last item? we can just return the empty container.
|
||||
if c.N() == 1 {
|
||||
c.n = 0
|
||||
return nil, true
|
||||
}
|
||||
c = c.Thaw()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue