test(member-files): log startup state before transfer
This commit is contained in:
1 parent
a198cfb9e3
commit
5df6d0c8f3
1 file changed
+5
@@ -251,6 +251,11 @@ static void tick(void* arg) {
|
||||
struct ETCP_ROUTER_CONN* route = etcp_router_conn_get(t->nodes[AUTHOR], GROUP, t->ids[SERVER], ETCP_RT_ID_MEMBER_FILES);
|
||||
if (route->inflight_q->count > t->peak_inflight) t->peak_inflight = route->inflight_q->count;
|
||||
if (t->phase == 0) {
|
||||
if (t->ticks == 1 || !(t->ticks % 1000)) {
|
||||
struct member_files* files = t->nodes[SERVER]->member_files;
|
||||
DEBUG_INFO(DEBUG_CATEGORY_MEDIA, "member_files test: startup tick=%u storage_status=%d init_result=%d closing=%d server=%llx",
|
||||
t->ticks, files->storage_status, files->init_result, files->closing, (unsigned long long)t->ids[SERVER]);
|
||||
}
|
||||
if (t->nodes[SERVER]->member_files->storage_status == MF_OK) {
|
||||
DEBUG_INFO(DEBUG_CATEGORY_MEDIA, "member_files test: storage ready; upload creates its own CM route request");
|
||||
t->phase = 1; transfer(t, 1, 1);
|
||||
|
||||
Reference in new issue
Block a user