Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-vslp
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-vslp
Commits
c9ef0f52
Commit
c9ef0f52
authored
Sep 12, 2016
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix a leftover from vslp times - overlooked increment by one for crc32
noticed after varnish core merge
parent
26b23cee
Pipeline
#27
skipped
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
9 deletions
+4
-9
shard_hash.c
src/shard_hash.c
+1
-6
v01000.vtc
src/tests/v01000.vtc
+3
-3
No files found.
src/shard_hash.c
View file @
c9ef0f52
...
...
@@ -56,12 +56,7 @@ vle32enc(void *pp, uint32_t u)
static
uint32_t
__match_proto__
(
hash_func
)
shard_hash_crc32
(
VCL_STRING
s
)
{
uint32_t
crc
;
crc
=
crc32
(
~
0U
,
(
const
unsigned
char
*
)
s
,
strlen
(
s
));
crc
^=
~
0U
;
crc
++
;
return
(
crc
);
return
(
crc32_l
(
s
,
strlen
(
s
)));
}
static
uint32_t
__match_proto__
(
hash_func
)
...
...
src/tests/v01000.vtc
View file @
c9ef0f52
...
...
@@ -136,9 +136,9 @@ logexpect l1 -v v1 -g raw -d 1 {
expect 0 = CLI Loaded
expect * = Debug {^shard: lookup key 68b902f
8
idx 29 host 0}
expect * = Debug {^shard: lookup key 39dc461
4
idx 20 host 1}
expect * = Debug {^shard: lookup key c779350
6
idx 59 host 2}
expect * = Debug {^shard: lookup key 68b902f
7
idx 29 host 0}
expect * = Debug {^shard: lookup key 39dc461
3
idx 20 host 1}
expect * = Debug {^shard: lookup key c779350
5
idx 59 host 2}
} -start
client c1 {
...
...
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