private LogBuffers LogBuffers(long registrationId, string logFileName, String channel) { LogBuffers logBuffers = _logBuffersByIdMap[registrationId]; if (null == logBuffers) { logBuffers = _logBuffersFactory.Map(logFileName); _logBuffersByIdMap[registrationId] = logBuffers; if (_ctx.PreTouchMappedMemory() && !channel.Contains("sparse=true")) { logBuffers.PreTouch(); } } logBuffers.IncRef(); return(logBuffers); }
private LogBuffers LogBuffers(long registrationId, string logFileName) { LogBuffers logBuffers = _logBuffersByIdMap[registrationId]; if (null == logBuffers) { logBuffers = _logBuffersFactory.Map(logFileName); _logBuffersByIdMap[registrationId] = logBuffers; if (_ctx.PreTouchMappedMemory()) { logBuffers.PreTouch(); } } logBuffers.IncRef(); return(logBuffers); }