diff --git a/src/cas/generic/inBuf.cc b/src/cas/generic/inBuf.cc index f37efaa0b..a96d16e99 100644 --- a/src/cas/generic/inBuf.cc +++ b/src/cas/generic/inBuf.cc @@ -157,6 +157,7 @@ const inBufCtx inBuf::pushCtx (bufSizeT headerSize, bufSizeT bodySize) bufSizeT inBuf::popCtx (const inBufCtx &ctx) { if (ctx.stat==inBufCtx::pushCtxSuccess) { + this->mutex.lock(); bufSizeT bytesRemoved = this->nextReadIndex; this->pBuf = ctx.pBuf; this->bufSize = ctx.bufSize;