[#1284] writecache: Allow to seal writecache async

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2024-07-31 16:30:07 +03:00
parent 68029d756e
commit 93d63e1632
10 changed files with 252 additions and 170 deletions

View file

@ -3422,6 +3422,7 @@ func (x *SealWriteCacheRequest_Body) StableSize() (size int) {
}
size += proto.RepeatedBytesSize(1, x.Shard_ID)
size += proto.BoolSize(2, x.IgnoreErrors)
size += proto.BoolSize(3, x.Async)
size += proto.BoolSize(4, x.RestoreMode)
size += proto.BoolSize(5, x.Shrink)
return size
@ -3445,6 +3446,7 @@ func (x *SealWriteCacheRequest_Body) StableMarshal(buf []byte) []byte {
var offset int
offset += proto.RepeatedBytesMarshal(1, buf[offset:], x.Shard_ID)
offset += proto.BoolMarshal(2, buf[offset:], x.IgnoreErrors)
offset += proto.BoolMarshal(3, buf[offset:], x.Async)
offset += proto.BoolMarshal(4, buf[offset:], x.RestoreMode)
offset += proto.BoolMarshal(5, buf[offset:], x.Shrink)
return buf