Bend.LogSegmentsHandler.notifyLogStatus C# (CSharp) Method

notifyLogStatus() private method

private notifyLogStatus ( ) : void
return void
        private void notifyLogStatus()
        {
            long logUsedBytes = 0;
            long logFreeBytes = 0;

            lock (this) {
                foreach (RootBlockLogSegment seg in active_log_segments) {
                    logUsedBytes += seg.logsegment_size;
                }
                foreach (RootBlockLogSegment seg in empty_log_segments) {
                    logFreeBytes += seg.logsegment_size;
                }
            }
            logwriter.receiver.logStatusChange(logUsedBytes, logFreeBytes);
        }