From ef7f3ebd582fa0abeedb677b55dd09b090805258 Mon Sep 17 00:00:00 2001 From: chenshijun <csj_sky@126.com> Date: 星期三, 01 四月 2020 15:59:21 +0800 Subject: [PATCH] 把shmData的库拆开,把attach和detach放到外面去,使用更灵活 增加通过shmid获取shmkey的接口 --- shmqueue.go | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/shmqueue.go b/shmqueue.go index 8c5b3a4..489c38e 100644 --- a/shmqueue.go +++ b/shmqueue.go @@ -164,7 +164,8 @@ var elems []ElemInfo for i := 0; i < len(eqi.EsCaches); i++ { - if eqi.EsCaches[i].value.PicId != 0 && eqi.EsCaches[i].value.InfoId != 0 { + if eqi.EsCaches[i].value.PicId != -1 && eqi.EsCaches[i].value.InfoId != -1 && + eqi.EsCaches[i].value.PicId != 0 && eqi.EsCaches[i].value.InfoId != 0 { elems = append(elems, eqi.EsCaches[i].value) } } -- Gitblit v1.8.0