Browse Source

Include name/mime in ReadAllNeedles (#4005)

pull/4012/head
James Hartig 2 years ago
committed by GitHub
parent
commit
81624de27b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      weed/pb/volume_server.proto
  2. 1415
      weed/pb/volume_server_pb/volume_server.pb.go
  3. 2
      weed/storage/volume_read_all.go

2
weed/pb/volume_server.proto

@ -320,6 +320,8 @@ message ReadAllNeedlesResponse {
bool needle_blob_compressed = 6;
uint64 last_modified = 7;
uint32 crc = 8;
bytes name = 9;
bytes mime = 10;
}
message VolumeTailSenderRequest {

1415
weed/pb/volume_server_pb/volume_server.pb.go
File diff suppressed because it is too large
View File

2
weed/storage/volume_read_all.go

@ -37,6 +37,8 @@ func (scanner *VolumeFileScanner4ReadAll) VisitNeedle(n *needle.Needle, offset i
NeedleBlobCompressed: n.IsCompressed(),
LastModified: n.LastModified,
Crc: n.Checksum.Value(),
Name: n.Name,
Mime: n.Mime,
})
if sendErr != nil {
return sendErr

Loading…
Cancel
Save