GO-2024-3284: PingCAP TiDB nil pointer dereference in github.com/pingcap/tidb
package
Version:
v1.1.0-beta.0...-2a72e7f
Opens a new window with list of versions in this module.
Published: Dec 25, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Queue[T any] struct {
}
Queue is a circular buffer implementation of queue.
NewQueue creates a new queue with the given capacity.
Cap returns the capacity of the queue.
func (r *Queue[T]) Clear()
Clear clears the queue.
func (r *Queue[T]) ClearAndExpandIfNeed(size int)
ClearAndExpandIfNeed clears the queue and try to expand the elements
IsEmpty returns true if the queue is empty.
Len returns the number of elements in the queue.
func (r *Queue[T]) Pop() T
Pop pops an element from the queue.
func (r *Queue[T]) Push(element T)
Push pushes an element to the queue.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.