Add a copy method to the trace chunk interface
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 18 Sep 2019 16:34:07 +0000 (12:34 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 19 Sep 2019 18:33:21 +0000 (14:33 -0400)
commit1a414e3a88844a96aa23842822150ac44c391ed2
tree25bda8e596eeb9743463185a4a0e0a2b959e7bcd
parentdc3bfa8d4cbb95c7420673b677ef1b2447673642
Add a copy method to the trace chunk interface

Trace chunks may now be copied. This will allow, in a follow-up fix,
streams to use the trace chunk facilities without extending the
life-time of an existing chunk.

However, note that the copy of an "owner" chunk returns a "user"
chunk. While this may be surprising at first, it makes no sense for
two "owner" trace chunks to point to the same location.

In such a case, it would be legal for both trace chunks to arbitrarily
modify their underlying sub-folder hierarchies without coordinating
among themselves. This would break the existing "move to completed"
close command, for instance.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/common/trace-chunk.c
src/common/trace-chunk.h
This page took 0.030756 seconds and 5 git commands to generate.