MCPcopy Create free account
hub / github.com/ByConity/ByConity / reset

Method reset

src/DataStreams/BlockIO.cpp:50–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48}
49
50void BlockIO::reset()
51{
52 /** process_list_entry should be destroyed after in, after out and after pipeline,
53 * since in, out and pipeline contain pointer to objects inside process_list_entry (query-level MemoryTracker for example),
54 * which could be used before destroying of in and out.
55 *
56 * However, QueryStatus inside process_list_entry holds shared pointers to streams for some reason.
57 * Streams must be destroyed before storage locks, storages and contexts inside pipeline,
58 * so releaseQueryStreams() is required.
59 */
60 /// TODO simplify it all
61
62 out.reset();
63 in.reset();
64 if (process_list_entry)
65 process_list_entry->get().releaseQueryStreams();
66 pipeline.reset();
67 coordinator.reset();
68 plan_segment_process_entry.reset();
69 process_list_entry.reset();
70
71 /// TODO Do we need also reset callbacks? In which order?
72}
73
74BlockIO & BlockIO::operator= (BlockIO && rhs)
75{

Callers 10

authenticateFunction · 0.45
readImplMethod · 0.45
fetchNextBlockMethod · 0.45
nextMethod · 0.45
setTimerMethod · 0.45
readImplMethod · 0.45
clearExpiredTablesMethod · 0.45
nextMethod · 0.45
mainMethod · 0.45
SetUpMethod · 0.45

Calls 2

releaseQueryStreamsMethod · 0.80
getMethod · 0.45

Tested by 1

SetUpMethod · 0.36