projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: close fd on create unix sock error path
[lttng-tools.git]
/
src
/
common
/
consumer.c
diff --git
a/src/common/consumer.c
b/src/common/consumer.c
index c4518cc03a7d8891715704cd40a8983f50d08650..01266a700cb37199966c9257eba335689e877453 100644
(file)
--- a/
src/common/consumer.c
+++ b/
src/common/consumer.c
@@
-1424,6
+1424,8
@@
ssize_t lttng_consumer_on_read_subbuffer_mmap(
goto end;
}
outfd = stream->out_fd = ret;
goto end;
}
outfd = stream->out_fd = ret;
+ /* Reset current size because we just perform a rotation. */
+ stream->tracefile_size_current = 0;
}
stream->tracefile_size_current += len;
}
}
stream->tracefile_size_current += len;
}
@@
-1604,6
+1606,8
@@
ssize_t lttng_consumer_on_read_subbuffer_splice(
goto end;
}
outfd = stream->out_fd = ret;
goto end;
}
outfd = stream->out_fd = ret;
+ /* Reset current size because we just perform a rotation. */
+ stream->tracefile_size_current = 0;
}
stream->tracefile_size_current += len;
}
}
stream->tracefile_size_current += len;
}
This page took
0.027572 seconds
and
4
git commands to generate.