some typo
Signed-off-by: yanxuean <yan.xuean@zte.com.cn>
This commit is contained in:
parent
2b1c915f82
commit
81307793b7
@ -158,7 +158,7 @@ To build the daemon and `ctr` simple test client, the following build system dep
|
|||||||
* Protoc 3.x compiler and headers (download at the [Google protobuf releases page](https://github.com/google/protobuf/releases))
|
* Protoc 3.x compiler and headers (download at the [Google protobuf releases page](https://github.com/google/protobuf/releases))
|
||||||
* Btrfs headers and libraries for your distribution. Note that building the btrfs driver can be disabled via build tag removing this dependency.
|
* Btrfs headers and libraries for your distribution. Note that building the btrfs driver can be disabled via build tag removing this dependency.
|
||||||
|
|
||||||
For proper results, install the `protoc` release into `/usr/local` on your build system. For example, the following commands will download and install the 3.1.0 release for a 64-bit Linux host:
|
For proper results, install the `protoc` release into `/usr/local` on your build system. For example, the following commands will download and install the 3.5.0 release for a 64-bit Linux host:
|
||||||
|
|
||||||
```
|
```
|
||||||
$ wget -c https://github.com/google/protobuf/releases/download/v3.5.0/protoc-3.5.0-linux-x86_64.zip
|
$ wget -c https://github.com/google/protobuf/releases/download/v3.5.0/protoc-3.5.0-linux-x86_64.zip
|
||||||
|
@ -133,7 +133,7 @@ type LeasesClient interface {
|
|||||||
// during the lease eligible for garbage collection if not referenced
|
// during the lease eligible for garbage collection if not referenced
|
||||||
// or retained by other resources during the lease.
|
// or retained by other resources during the lease.
|
||||||
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
|
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
|
||||||
// ListTransactions lists all active leases, returning the full list of
|
// List lists all active leases, returning the full list of
|
||||||
// leases and optionally including the referenced resources.
|
// leases and optionally including the referenced resources.
|
||||||
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
|
List(ctx context.Context, in *ListRequest, opts ...grpc.CallOption) (*ListResponse, error)
|
||||||
}
|
}
|
||||||
@ -183,7 +183,7 @@ type LeasesServer interface {
|
|||||||
// during the lease eligible for garbage collection if not referenced
|
// during the lease eligible for garbage collection if not referenced
|
||||||
// or retained by other resources during the lease.
|
// or retained by other resources during the lease.
|
||||||
Delete(context.Context, *DeleteRequest) (*google_protobuf1.Empty, error)
|
Delete(context.Context, *DeleteRequest) (*google_protobuf1.Empty, error)
|
||||||
// ListTransactions lists all active leases, returning the full list of
|
// List lists all active leases, returning the full list of
|
||||||
// leases and optionally including the referenced resources.
|
// leases and optionally including the referenced resources.
|
||||||
List(context.Context, *ListRequest) (*ListResponse, error)
|
List(context.Context, *ListRequest) (*ListResponse, error)
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ service Leases {
|
|||||||
// or retained by other resources during the lease.
|
// or retained by other resources during the lease.
|
||||||
rpc Delete(DeleteRequest) returns (google.protobuf.Empty);
|
rpc Delete(DeleteRequest) returns (google.protobuf.Empty);
|
||||||
|
|
||||||
// ListTransactions lists all active leases, returning the full list of
|
// List lists all active leases, returning the full list of
|
||||||
// leases and optionally including the referenced resources.
|
// leases and optionally including the referenced resources.
|
||||||
rpc List(ListRequest) returns (ListResponse);
|
rpc List(ListRequest) returns (ListResponse);
|
||||||
}
|
}
|
||||||
|
2
gc/gc.go
2
gc/gc.go
@ -36,7 +36,7 @@ func Tricolor(roots []Node, refs func(ref Node) ([]Node, error)) (map[Node]struc
|
|||||||
var (
|
var (
|
||||||
grays []Node // maintain a gray "stack"
|
grays []Node // maintain a gray "stack"
|
||||||
seen = map[Node]struct{}{} // or not "white", basically "seen"
|
seen = map[Node]struct{}{} // or not "white", basically "seen"
|
||||||
reachable = map[Node]struct{}{} // or "block", in tri-color parlance
|
reachable = map[Node]struct{}{} // or "black", in tri-color parlance
|
||||||
)
|
)
|
||||||
|
|
||||||
grays = append(grays, roots...)
|
grays = append(grays, roots...)
|
||||||
|
Loading…
Reference in New Issue
Block a user