1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-26 09:46:09 +00:00

Update to the recent branch 1.6 and release 1.6.12.

Please visit the following link to get more details:
https://github.com/RediSearch/RediSearch/releases
This commit is contained in:
Sergey A. Osokin 2020-04-28 21:40:36 +00:00
parent 9bd713a0aa
commit 8fc93477d0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=533277
3 changed files with 26 additions and 5 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= redisearch
DISTVERSIONPREFIX= v
DISTVERSION= 1.4.27
DISTVERSION= 1.6.12
CATEGORIES= textproc
MAINTAINER= osa@FreeBSD.org
@ -14,7 +14,7 @@ LICENSE_NAME= Redis Source Available License Agreement
LICENSE_FILE= ${WRKSRC}/LICENSE
LICENSE_PERMS= dist-mirror pkg-mirror auto-accept
USES= cmake compiler:c++11-lang
USES= cmake compiler
USE_GITHUB= yes
GH_ACCOUNT= RediSearch

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1586955959
SHA256 (RediSearch-RediSearch-v1.4.27_GH0.tar.gz) = 92f51d5a0ce4fb5ff22dbc4da3b24d700dd247460607abd2902493bedff85749
SIZE (RediSearch-RediSearch-v1.4.27_GH0.tar.gz) = 3575961
TIMESTAMP = 1587566660
SHA256 (RediSearch-RediSearch-v1.6.12_GH0.tar.gz) = 143e97c9354f7dfb2b1a0e3c5a23256130e23204abf643826fe9c44dcd62bc6c
SIZE (RediSearch-RediSearch-v1.6.12_GH0.tar.gz) = 3669819

View File

@ -0,0 +1,21 @@
--- src/fork_gc.c.orig 2020-04-12 11:18:47 UTC
+++ src/fork_gc.c
@@ -282,6 +282,7 @@ done:
}
static void sendHeaderString(ForkGC *gc, void *arg) {
+ struct iovec { void *iov_base; size_t iov_len; };
struct iovec *iov = arg;
FGC_sendBuffer(gc, iov->iov_base, iov->iov_len);
}
@@ -298,7 +299,9 @@ static void FGC_childCollectTerms(ForkGC *gc, RedisSea
RedisModuleKey *idxKey = NULL;
InvertedIndex *idx = Redis_OpenInvertedIndexEx(sctx, term, strlen(term), 1, &idxKey);
if (idx) {
- struct iovec iov = {.iov_base = (void *)term, termLen};
+ struct iovec { void *iov_base; size_t iov_len; } iov;
+ iov.iov_base = term;
+ iov.iov_len = termLen;
FGC_childRepairInvidx(gc, sctx, idx, sendHeaderString, &iov, NULL);
}
if (idxKey) {