Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-tus
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-tus
Commits
05a32d40
Unverified
Commit
05a32d40
authored
Aug 19, 2020
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adjust to new vsb api
parent
39b5145b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
tus_blob.c
src/tus_blob.c
+2
-1
tus_file.c
src/tus_file.c
+2
-1
No files found.
src/tus_blob.c
View file @
05a32d40
...
...
@@ -68,7 +68,7 @@ tus_chksum_init(VRT_CTX) {
char
buf
[
512
];
int
first
=
1
;
AN
(
VSB_
new
(
names
,
buf
,
sizeof
buf
,
VSB_FIXEDLEN
));
AN
(
VSB_
init
(
names
,
buf
,
sizeof
buf
));
load_vmod
(
&
import_Vmod_blob_Data
,
&
dl_vmod_blob
,
(
const
void
**
)
&
vmod_blob
);
...
...
@@ -96,6 +96,7 @@ tus_chksum_init(VRT_CTX) {
#include "tbl_hash_enum.h"
AZ
(
VSB_finish
(
names
));
REPLACE
(
hashes
,
VSB_data
(
names
));
VSB_fini
(
names
);
fprintf
(
stderr
,
"digests OK
\n
"
);
// dummy ref to appease compiler
...
...
src/tus_file.c
View file @
05a32d40
...
...
@@ -752,7 +752,7 @@ tus_file_new(VRT_CTX, struct VPFX(tus_server) *srv, enum tus_f_type type,
}
/* there is no mkostempat() */
AN
(
VSB_
new
(
vsb_path
,
buf
,
sizeof
buf
,
VSB_FIXEDLEN
));
AN
(
VSB_
init
(
vsb_path
,
buf
,
sizeof
buf
));
VSB_cat
(
vsb_path
,
tus_server_basedir
(
srv
));
VSB_cat
(
vsb_path
,
"/"
TUS_FILE_PFX
);
tus_name_rnd
(
vsb_path
);
...
...
@@ -767,6 +767,7 @@ tus_file_new(VRT_CTX, struct VPFX(tus_server) *srv, enum tus_f_type type,
return
(
NULL
);
}
path
=
VSB_data
(
vsb_path
);
VSB_fini
(
vsb_path
);
if
(
fallocate
(
fd
,
0
,
0
,
header_size
))
{
VSLb
(
ctx
->
vsl
,
SLT_Error
,
"%s: fallocate(%s) failed: %d (%s)"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment