Merge pull request 's3ql fixes for 5.2.2' (#118) from pr-s3ql-5.2.2-fix into master
Reviewed-on: #118
This commit is contained in:
commit
13cd0f6403
2 changed files with 14 additions and 2 deletions
|
@ -50,9 +50,8 @@ super: rec {
|
||||||
|
|
||||||
prometheus-jitsi-exporter = patch super.prometheus-jitsi-exporter "patches/base/prometheus-jitsi-exporter";
|
prometheus-jitsi-exporter = patch super.prometheus-jitsi-exporter "patches/base/prometheus-jitsi-exporter";
|
||||||
|
|
||||||
s3ql = super.s3ql.overrideAttrs (old: {
|
s3ql = (patch super.s3ql "patches/base/s3ql").overrideAttrs (old: {
|
||||||
propagatedBuildInputs = old.propagatedBuildInputs ++ [
|
propagatedBuildInputs = old.propagatedBuildInputs ++ [
|
||||||
super.python3Packages.packaging
|
|
||||||
super.python3Packages.systemd
|
super.python3Packages.systemd
|
||||||
];
|
];
|
||||||
});
|
});
|
||||||
|
|
13
patches/base/s3ql/metadata-accurate-length.patch
Normal file
13
patches/base/s3ql/metadata-accurate-length.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/src/s3ql/database.py b/src/s3ql/database.py
|
||||||
|
index 1c6df119..f3a47781 100644
|
||||||
|
--- a/src/s3ql/database.py
|
||||||
|
+++ b/src/s3ql/database.py
|
||||||
|
@@ -677,7 +677,7 @@ def upload_metadata(
|
||||||
|
)
|
||||||
|
obj = METADATA_OBJ_NAME % (blockno, params.seq_no)
|
||||||
|
fh.seek(blockno * blocksize)
|
||||||
|
- backend.write_fh(obj, fh, len_=blocksize)
|
||||||
|
+ backend.write_fh(obj, fh, len_=min(blocksize, db_size - blockno * blocksize))
|
||||||
|
|
||||||
|
if not update_params:
|
||||||
|
return
|
Loading…
Reference in a new issue