Repository navigation
Commit 789122b
committed
fix(crdt): admit self-written snapshots via a local import path
import_snapshot routed through import_remote's untrusted-peer size
ceilings even for a collection's own snapshot restored at cold start.
Those ceilings bound how much work an untrusted peer may cause; against
a store's own data they instead cap how large a document may be
reloaded after being written, with no in-library recovery once a store
grows past the limit. Route self-written snapshots through import_local
instead, keeping import_remote's caps for peer-originated snapshots via
sync.1 parent 92f4de0 commit 789122b
1 file changed
Lines changed: 20 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
141 | 154 | | |
142 | 155 | | |
143 | 156 | | |
| |||
146 | 159 | | |
147 | 160 | | |
148 | 161 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
155 | 168 | | |
156 | 169 | | |
157 | 170 | | |
| |||
0 commit comments