Skip to content

Commit

Permalink
discovery: fix num of allowed listeners
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Indenbaum <[email protected]>
  • Loading branch information
Alexander Indenbaum committed Jun 5, 2024
1 parent 7867539 commit 5eaec63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion control/discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ def reply_get_log_page(self, conn, data, cmd_id):
if nvme_data_len <= 1024 and nvme_logpage_offset == 0:
nvme_get_log_page_reply = NVMeGetLogPage()
nvme_get_log_page_reply.genctr = self_conn.gen_cnt
nvme_get_log_page_reply.numrec = len(listeners)
nvme_get_log_page_reply.numrec = len(allow_listeners)

reply = pdu_reply + nvme_tcp_data_pdu + bytes(nvme_get_log_page_reply)[:nvme_data_len]
elif nvme_data_len % 1024 == 0:
Expand Down

0 comments on commit 5eaec63

Please sign in to comment.