lib/storage: add comment for how mustBeDeleted field should be used (#4454)

Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
Roman Khavronenko 2023-06-15 11:17:45 +02:00 committed by GitHub
parent c8f9fab3cb
commit f50f35a8e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -168,6 +168,8 @@ type partWrapper struct {
refCount uint32
// The flag, which is set when the part must be deleted after refCount reaches zero.
// This field should be updated only after partWrapper
// was removed from the list of active parts.
mustBeDeleted uint32
// The part itself.