Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove non used pb messege part #12679

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
73 changes: 0 additions & 73 deletions src/yb/fs/fs.proto
Expand Up @@ -53,76 +53,3 @@ message InstanceMetadataPB {

// TODO: add a "node type" (TS/Master?)
}

// Describes a collection of filesystem path instances and the membership of a
// particular instance in the collection.
//
// In a healthy filesystem (see below), a path instance can be referred to via
// its UUID's position in all_uuids instead of via the UUID itself. This is
// useful when there are many such references, as the position is much shorter
// than the UUID.
message PathSetPB {
// Globally unique identifier for this path instance.
required bytes uuid = 1;

// All UUIDs in this path instance set. In a healthy filesystem:
// 1. There exists an on-disk PathInstanceMetadataPB for each listed UUID, and
// 2. Every PathSetPB contains an identical copy of all_uuids.
repeated bytes all_uuids = 2;
}

// A filesystem instance can contain multiple paths. One of these structures
// is persisted in each path when the filesystem instance is created.
message PathInstanceMetadataPB {
// Describes this path instance as well as all of the other path instances
// that, taken together, describe a complete set.
required PathSetPB path_set = 1;

// Textual representation of the block manager that formatted this path.
required string block_manager_type = 2;

// Block size on the filesystem where this instance was created. If the
// instance (and its data) are ever copied to another location, the block
// size in that location must be the same.
required uint64 filesystem_block_size_bytes = 3;
}

message BlockIdPB {
required fixed64 id = 1;
}

// The kind of record.
enum BlockRecordType {
UNKNOWN = 0;
CREATE = 1;
DELETE = 2;
}

// An element found in a container metadata file of the log-backed block
// storage implementation.
//
// Each one tracks the existence (creation) or non-existence (deletion)
// of a particular block. They are written sequentially, with subsequent
// messages taking precedence over earlier ones (e.g. "CREATE foo" followed
// by "DELETE foo" means that block foo does not exist).
message BlockRecordPB {
// The unique identifier of the block.
required BlockIdPB block_id = 1;

// Whether this is a CREATE or a DELETE.
required BlockRecordType op_type = 2;

// The time at which this block record was created, expressed in terms of
// microseconds since the epoch.
required uint64 timestamp_us = 3;

// The offset of the block in the container data file.
//
// Required for CREATE.
optional int64 offset = 4;

// The length of the block in the container data file.
//
// Required for CREATE.
optional int64 length = 5;
}