mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
memory needle map mark size to be TombstoneFileSize
fix https://github.com/chrislusf/seaweedfs/issues/850
This commit is contained in:
parent
d3f675abc6
commit
5668ed798d
|
@ -76,9 +76,9 @@ func (cs *CompactSection) Delete(key NeedleId) uint32 {
|
|||
cs.Lock()
|
||||
ret := uint32(0)
|
||||
if i := cs.binarySearchValues(skey); i >= 0 {
|
||||
if cs.values[i].Size > 0 {
|
||||
if cs.values[i].Size > 0 && cs.values[i].Size != TombstoneFileSize {
|
||||
ret = cs.values[i].Size
|
||||
cs.values[i].Size = 0
|
||||
cs.values[i].Size = TombstoneFileSize
|
||||
}
|
||||
}
|
||||
if v, found := cs.overflow.findOverflowEntry(skey); found {
|
||||
|
|
Loading…
Reference in a new issue