lib/bytesutil: substitute parentheses with slashes in ByteBuffer.Path() output, so it can be passed to path manipulating functions

This is needed for the upcoming VictoriaLogs
This commit is contained in:
Aliaksandr Valialkin 2023-06-19 22:37:24 -07:00
parent 78eaa056c0
commit c1bed35b39
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -28,7 +28,7 @@ type ByteBuffer struct {
// Path returns an unique id for bb.
func (bb *ByteBuffer) Path() string {
return fmt.Sprintf("ByteBuffer(%p)", bb)
return fmt.Sprintf("ByteBuffer/%p/mem", bb)
}
// Reset resets bb.