Skip to content

Expose key flags on DataCenterNode #33

@alexrp

Description

@alexrp

// TODO: Should we allow setting 0b0001 in the API?
if (keyFlags is not 0b0000 or 0b0001)
throw new InvalidDataException($"Node has invalid key flags 0x{keyFlags:x1}.");

`key_flags` is `0` in official data center files. It may have a combination of
the following values:
```cpp
enum DataCenterKeyFlags : uint8_t
{
DATA_CENTER_KEY_FLAGS_NONE = 0b0000,
DATA_CENTER_KEY_FLAGS_UNCACHED = 0b0001,
};
```
If `DATA_CENTER_KEY_FLAGS_UNCACHED` is set, the results of a query against this
node will not be cached by the client.

Metadata

Metadata

Assignees

Labels

area: formatsIssues related to the file format APIs.state: approvedEnhancements and tasks that have been approved.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions