Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
picodata
Commits
c693710f
Commit
c693710f
authored
2 years ago
by
Georgy Moshkin
Browse files
Options
Downloads
Patches
Plain Diff
chore: fix warnings
parent
0a1c150f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
3 merge requests
!163
Feat/voter switchover
,
!162
Refactor/events and more
,
!158
Refactor join loop (v2)
Pipeline
#7491
failed
2 years ago
Stage: build
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/traft/mod.rs
+1
-8
1 addition, 8 deletions
src/traft/mod.rs
src/traft/node.rs
+0
-1
0 additions, 1 deletion
src/traft/node.rs
src/traft/storage.rs
+2
-0
2 additions, 0 deletions
src/traft/storage.rs
src/traft/topology.rs
+1
-1
1 addition, 1 deletion
src/traft/topology.rs
with
4 additions
and
10 deletions
src/traft/mod.rs
+
1
−
8
View file @
c693710f
...
...
@@ -266,14 +266,6 @@ impl Entry {
None
=>
None
,
}
}
/// Returns the iterator over contained `Vec<Peer>` if it's an `EntryConfChange`.
fn
iter_peers
(
&
self
)
->
std
::
slice
::
Iter
<
'_
,
Peer
>
{
match
&
self
.context
{
Some
(
EntryContext
::
ConfChange
(
v
))
=>
v
.peers
.iter
(),
_
=>
(
&
[])
.iter
(),
}
}
}
impl
EntryContext
{
...
...
@@ -474,6 +466,7 @@ pub struct SetActiveRequest {
impl
AsTuple
for
SetActiveRequest
{}
impl
SetActiveRequest
{
#[allow(dead_code)]
#[inline]
pub
fn
activate
(
instance_id
:
impl
Into
<
String
>
,
cluster_id
:
impl
Into
<
String
>
)
->
Self
{
Self
{
...
...
This diff is collapsed.
Click to expand it.
src/traft/node.rs
+
0
−
1
View file @
c693710f
...
...
@@ -14,7 +14,6 @@ use ::tarantool::fiber;
use
::
tarantool
::
proc
;
use
::
tarantool
::
tlua
;
use
::
tarantool
::
transaction
::
start_transaction
;
use
std
::
any
::
type_name
;
use
std
::
any
::
Any
;
use
std
::
cell
::
RefCell
;
use
std
::
collections
::
HashMap
;
...
...
This diff is collapsed.
Click to expand it.
src/traft/storage.rs
+
2
−
0
View file @
c693710f
...
...
@@ -212,6 +212,7 @@ impl Storage {
Storage
::
raft_state
(
"raft_id"
)
}
#[allow(dead_code)]
pub
fn
instance_id
()
->
Result
<
Option
<
String
>
,
StorageError
>
{
Storage
::
raft_state
(
"instance_id"
)
}
...
...
@@ -299,6 +300,7 @@ impl Storage {
Ok
(())
}
#[allow(dead_code)]
pub
fn
delete_peer
(
raft_id
:
u64
)
->
Result
<
(),
StorageError
>
{
Storage
::
space
(
RAFT_GROUP
)
?
.delete
(
&
[
raft_id
])
...
...
This diff is collapsed.
Click to expand it.
src/traft/topology.rs
+
1
−
1
View file @
c693710f
...
...
@@ -106,7 +106,7 @@ impl Topology {
instance_id
,
instance_uuid
,
raft_id
,
peer_address
:
advertise
.into
()
,
peer_address
:
advertise
,
replicaset_id
,
replicaset_uuid
,
commit_index
:
INVALID_INDEX
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment