Commit 562aad6
committed
osd: truncate shard object to correct size with ECSwitch.
The implementation of ECSwitch above dropped an override of rollback_append. This was causing rollback to be truncated to the incorrect size.
This fix updates PGBackend to use a replacement API (object_size_to_shard_size) to determine the correct shard size.
This is clearer than the previous override code and is borrowed from the forthcoming EC optimisations.
Signed-off-by: Alex Ainscow <[email protected]>1 parent dd4248f commit 562aad6
1 file changed
+4
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
| 212 | + | |
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
| |||
500 | 501 | | |
501 | 502 | | |
502 | 503 | | |
503 | | - | |
| 504 | + | |
504 | 505 | | |
505 | 506 | | |
506 | 507 | | |
507 | 508 | | |
508 | 509 | | |
509 | | - | |
| 510 | + | |
510 | 511 | | |
511 | 512 | | |
512 | 513 | | |
| |||
0 commit comments