GO-2024-3284: PingCAP TiDB nil pointer dereference in github.com/pingcap/tidb
package
Version:
v0.0.0-...-9812d85
Opens a new window with list of versions in this module.
Published: Dec 3, 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.
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.