ticketplant 第二天如何在 kdb 中写入新的 tplog?

how does ticketplant write the new tplog next day in kdb?

我知道tickerplant收到数据后会写tplog。 在一天结束时,ticker plant 将开始编写新的 tplog。 我看到 tp.q 但无法弄清楚哪个函数执行此操作。 我知道 .u.tick 开始在磁盘上写入 tplog 但没看到哪个命令使 tplog 第二天开始写入新的 tplog? 有人可以指点我吗?

.u.ts 在计时器上运行,不断检查一天的结束。在一天结束时它调用 .u.endofday,它调用 .u.ld.

.u.ld 检查名称中包含当前日期的日志文件是否存在,如果该文件不存在,则创建它。

.u.ld负责每天创建新的日志文件