From af6c14d5e7b84a90cf3233a1ab2f5920b961e44a Mon Sep 17 00:00:00 2001 From: Aliaksandr Valialkin Date: Mon, 19 Jun 2023 22:37:24 -0700 Subject: [PATCH] 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 --- lib/bytesutil/bytebuffer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bytesutil/bytebuffer.go b/lib/bytesutil/bytebuffer.go index 1fccdb034..013ab67bc 100644 --- a/lib/bytesutil/bytebuffer.go +++ b/lib/bytesutil/bytebuffer.go @@ -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.