filer.proto: report a forwarded AtomicRenameEntry's last event position

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Chris LuandClaude Opus 5.5 committed 2026-11-27 12:59:58 -08:00
1 parent 4f3d262984
commit 72cf9bab02
4 files changed
+47 -3

No files matched your search

@@ -562,6 +562,9 @@ message AtomicRenameEntryRequest {
}
message AtomicRenameEntryResponse {
// Set for a forwarded rename: the owner's metadata log position of
// the rename's last event.
int64 ts_ns = 1;
}
message StreamRenameEntryRequest {
+3
View File
@@ -570,6 +570,9 @@ message AtomicRenameEntryRequest {
}
message AtomicRenameEntryResponse {
// Set for a forwarded rename: the owner's metadata log position of
// the rename's last event.
int64 ts_ns = 1;
}
message StreamRenameEntryRequest {
+14 -3
View File
@@ -3136,7 +3136,10 @@ func (x *AtomicRenameEntryRequest) GetIsMoved() bool {
}
type AtomicRenameEntryResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
state protoimpl.MessageState `protogen:"open.v1"`
// Set for a forwarded rename: the owner's metadata log position of
// the rename's last event.
TsNs int64 `protobuf:"varint,1,opt,name=ts_ns,json=tsNs,proto3" json:"ts_ns,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
@@ -3171,6 +3174,13 @@ func (*AtomicRenameEntryResponse) Descriptor() ([]byte, []int) {
return file_filer_proto_rawDescGZIP(), []int{33}
}
func (x *AtomicRenameEntryResponse) GetTsNs() int64 {
if x != nil {
return x.TsNs
}
return 0
}
type StreamRenameEntryRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
OldDirectory string `protobuf:"bytes,1,opt,name=old_directory,json=oldDirectory,proto3" json:"old_directory,omitempty"`
@@ -7789,8 +7799,9 @@ const file_filer_proto_rawDesc = "" +
"signatures\x18\x05 \x03(\x05R\n" +
"signatures\x121\n" +
"\x15fail_if_target_exists\x18\x06 \x01(\bR\x12failIfTargetExists\x12\x19\n" +
"\bis_moved\x18\a \x01(\bR\aisMoved\"\x1b\n" +
"\x19AtomicRenameEntryResponse\"\xd5\x01\n" +
"\bis_moved\x18\a \x01(\bR\aisMoved\"0\n" +
"\x19AtomicRenameEntryResponse\x12\x13\n" +
"\x05ts_ns\x18\x01 \x01(\x03R\x04tsNs\"\xd5\x01\n" +
"\x18StreamRenameEntryRequest\x12#\n" +
"\rold_directory\x18\x01 \x01(\tR\foldDirectory\x12\x19\n" +
"\bold_name\x18\x02 \x01(\tR\aoldName\x12#\n" +
+27
View File
@@ -2908,6 +2908,11 @@ func (m *AtomicRenameEntryResponse) MarshalToSizedBufferVT(dAtA []byte) (int, er
i -= len(m.unknownFields)
copy(dAtA[i:], m.unknownFields)
}
if m.TsNs != 0 {
i = protohelpers.EncodeVarint(dAtA, i, uint64(m.TsNs))
i--
dAtA[i] = 0x8
}
return len(dAtA) - i, nil
}
@@ -7895,6 +7900,9 @@ func (m *AtomicRenameEntryResponse) SizeVT() (n int) {
}
var l int
_ = l
if m.TsNs != 0 {
n += 1 + protohelpers.SizeOfVarint(uint64(m.TsNs))
}
n += len(m.unknownFields)
return n
}
@@ -17660,6 +17668,25 @@ func (m *AtomicRenameEntryResponse) UnmarshalVT(dAtA []byte) error {
return fmt.Errorf("proto: AtomicRenameEntryResponse: illegal tag %d (wire type %d)", fieldNum, wire)
}
switch fieldNum {
case 1:
if wireType != 0 {
return fmt.Errorf("proto: wrong wireType = %d for field TsNs", wireType)
}
m.TsNs = 0
for shift := uint(0); ; shift += 7 {
if shift >= 64 {
return protohelpers.ErrIntOverflow
}
if iNdEx >= l {
return io.ErrUnexpectedEOF
}
b := dAtA[iNdEx]
iNdEx++
m.TsNs |= int64(b&0x7F) << shift
if b < 0x80 {
break
}
}
default:
iNdEx = preIndex
skippy, err := protohelpers.Skip(dAtA[iNdEx:])