Skip to content

Commit 2fb0e58

Browse files
authored
Merge pull request #349 from nspcc-dev/ec-head-part
EC HEAD
2 parents 6348860 + 16a9fcb commit 2fb0e58

File tree

3 files changed

+23
-3
lines changed

3 files changed

+23
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### Added
66
- EC rules to container storage policy (#345)
7-
- GET/RANGE query for EC part object (#345)
7+
- GET/RANGE/HEAD query for EC part object (#345, #349)
88

99
### Changed
1010

object/service.proto

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,17 @@ message HeaderWithSignature {
487487
neo.fs.v2.refs.Signature signature = 2 [json_name = "signature"];
488488
}
489489

490-
// Object HEAD response
490+
// Object HEAD response.
491+
//
492+
// The query for a parent object's EC part locally stored on the server is
493+
// specified as follows:
494+
// - `body.address` is an address of the parent;
495+
// - `meta_header.x_headers` includes `__NEOFS__EC_RULE_IDX` and
496+
// `__NEOFS__EC_PART_IDX` by object attribute format. Rule index MUST NOT
497+
// exceed container's `PlacementPolicy.ec_rules` list. Part index MUST NOT
498+
// exceed total part number in the indexed rule.
499+
// In this case, if `body.address` refers to TOMBSTONE or LOCK object (which
500+
// cannot have EC parts), the query applies to it.
491501
message HeadResponse {
492502
// Object HEAD response body
493503
message Body {

proto-docs/object.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,17 @@ DEPRECATED. This field is ignored. |
650650
<a name="neo.fs.v2.object.HeadResponse"></a>
651651

652652
### Message HeadResponse
653-
Object HEAD response
653+
Object HEAD response.
654+
655+
The query for a parent object's EC part locally stored on the server is
656+
specified as follows:
657+
- `body.address` is an address of the parent;
658+
- `meta_header.x_headers` includes `__NEOFS__EC_RULE_IDX` and
659+
`__NEOFS__EC_PART_IDX` by object attribute format. Rule index MUST NOT
660+
exceed container's `PlacementPolicy.ec_rules` list. Part index MUST NOT
661+
exceed total part number in the indexed rule.
662+
In this case, if `body.address` refers to TOMBSTONE or LOCK object (which
663+
cannot have EC parts), the query applies to it.
654664

655665

656666
| Field | Type | Label | Description |

0 commit comments

Comments
 (0)