Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Safe and sane multi-item storage removal #11490

Merged
merged 40 commits into from
May 29, 2022
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
0e48dc9
Fix overlay prefix removal result
gavofyork May 18, 2022
ae9b285
Second part of the overlay prefix removal fix.
gavofyork May 18, 2022
7f80f12
Report only items deleted from storage in clear_prefix
gavofyork May 20, 2022
3e580e5
Fix kill_prefix
gavofyork May 20, 2022
4a5ff62
Formatting
gavofyork May 20, 2022
8d56c13
Remove unused code
gavofyork May 20, 2022
91362cd
Fixes
gavofyork May 20, 2022
4767538
Fixes
gavofyork May 20, 2022
08b898c
Introduce clear_prefix host function v3
gavofyork May 20, 2022
aee7993
Formatting
gavofyork May 20, 2022
a1982d1
Use v2 for now
gavofyork May 20, 2022
ed26985
Fixes
gavofyork May 20, 2022
72f8fdd
Formatting
gavofyork May 20, 2022
d97aa89
Docs
gavofyork May 20, 2022
f4bbf8d
Child prefix removal should also hide v3 for now
gavofyork May 20, 2022
e82b1ca
Fixes
gavofyork May 20, 2022
73294b0
Fixes
gavofyork May 20, 2022
8a8efb1
Formatting
gavofyork May 20, 2022
a626d54
Fixes
gavofyork May 21, 2022
6867534
apply_to_keys_whle takes start_at
gavofyork May 21, 2022
94e885e
apply_to_keys_whle takes start_at
gavofyork May 21, 2022
2566a4d
apply_to_keys_whle takes start_at
gavofyork May 23, 2022
a71f9a0
Cursor API; force limits
gavofyork May 23, 2022
f435107
Use unsafe deprecated functions
gavofyork May 23, 2022
bc181a0
Formatting
gavofyork May 23, 2022
9317f6a
Merge remote-tracking branch 'origin/master' into gav-clear-prefix-v2
gavofyork May 23, 2022
0e51dbe
Fixes
gavofyork May 23, 2022
ee53604
Grumbles
gavofyork May 25, 2022
1fb2ef5
Fixes
gavofyork May 25, 2022
0338fce
Docs
gavofyork May 25, 2022
73d1fc6
Some nitpicks :see_no_evil:
bkchr May 25, 2022
ef7f475
Update primitives/externalities/src/lib.rs
gavofyork May 25, 2022
7db73b1
Formatting
gavofyork May 25, 2022
6aeb3a3
Fixes
KiChjang May 25, 2022
4692d06
cargo fmt
KiChjang May 25, 2022
7e8a8c2
Fixes
KiChjang May 25, 2022
c22b924
Fixes
gavofyork May 25, 2022
edf7ce0
Update primitives/io/src/lib.rs
gavofyork May 25, 2022
33224f2
Formatting
gavofyork May 25, 2022
a5f349b
Fixes
gavofyork May 26, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unused code
gavofyork committed May 20, 2022
commit 8d56c139f1feed60ebd3c59b1b1215a9ffb29250
4 changes: 2 additions & 2 deletions primitives/state-machine/src/ext.rs
Original file line number Diff line number Diff line change
@@ -464,8 +464,8 @@ where
}

self.mark_dirty();
// In the future, we should report this back to the caller.
let _overlay_count = self.overlay.clear_prefix(prefix);
//, Some(&self.overlay.changes)
let (all, count) = self.limit_remove_from_backend(None, Some(prefix), limit);
(all, count)
}
@@ -486,8 +486,8 @@ where
let _guard = guard();

self.mark_dirty();
// In the future, we should report this back to the caller.
let _overlay_count = self.overlay.clear_child_prefix(child_info, prefix);
//, Some(&self.overlay.changes)
let (all, count) = self.limit_remove_from_backend(Some(child_info), Some(prefix), limit);
(all, count)
}