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
a8aa09ae
Commit
a8aa09ae
authored
6 months ago
by
Georgy Moshkin
Browse files
Options
Downloads
Patches
Plain Diff
fix: use a cas predicate for the migration progress updates
parent
dc0ad29d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1254
fix: fault-tolerant governor raft operations via compare-and-swap
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugin/migration.rs
+3
-2
3 additions, 2 deletions
src/plugin/migration.rs
with
3 additions
and
2 deletions
src/plugin/migration.rs
+
3
−
2
View file @
a8aa09ae
use
crate
::
cas
;
use
crate
::
cbus
::
ENDPOINT_NAME
;
use
crate
::
plugin
::
reenterable_plugin_cas_request
;
use
crate
::
plugin
::
PreconditionCheckResult
;
...
...
@@ -458,7 +459,7 @@ fn down_single_file_with_commit(
&
[
plugin_name
,
&
queries
.filename_from_manifest
],
ADMIN_ID
,
)
?
;
let
ranges
=
vec!
[];
let
ranges
=
vec!
[
cas
::
Range
::
for_dml
(
&
dml
)
?
];
Ok
(
PreconditionCheckResult
::
DoOp
((
Op
::
Dml
(
dml
),
ranges
)))
};
...
...
@@ -558,7 +559,7 @@ pub fn apply_up_migrations(
),
ADMIN_ID
,
)
?
;
let
ranges
=
vec!
[];
let
ranges
=
vec!
[
cas
::
Range
::
for_dml
(
&
dml
)
?
];
Ok
(
PreconditionCheckResult
::
DoOp
((
Op
::
Dml
(
dml
),
ranges
)))
};
...
...
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