Skip to content

Commit

Permalink
fix bugs. (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
kfysck authored Oct 17, 2022
1 parent 0883d14 commit b888408
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/agent/da_request.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ int dtc_header_add(struct msg *msg, enum enum_agent_admin admin, char* dbname)
dtc_header.layer = msg->layer;

mbuf_copy(new_buf, &dtc_header, sizeof(dtc_header));
if(dbname && strlen(dbname) > 0 && msg->layer != 3)
if(dbname && strlen(dbname) > 0)
mbuf_copy(new_buf, dbname, dtc_header.dbname_len);

mbuf_copy(new_buf, mbuf->start, mbuf_length(mbuf));
Expand Down

0 comments on commit b888408

Please sign in to comment.