Commit a7979f52 authored by Mike Hibler's avatar Mike Hibler

Fix syntax of storageconfig "CMD=ELEMENT CLASS=local" lines.

Return VOLNAME instead of BSID and VOLSIZE instead of SIZE. This is what
the client-side parser expects based on what I was told previously.
Didn't notice til now because we had no local disk state in the DB.
parent d5dd6589
......@@ -4306,10 +4306,9 @@ COMMAND_PROTOTYPE(dostorageconfig)
for the client to consume. */
OUTPUT(buf, sizeof(buf),
"CMD=ELEMENT IDX=%d CLASS=%s PROTO=%s "
"HOSTID=%s BSID=%s UUID=%s UUID_TYPE=serial "
"SIZE=%d\n",
cmdidx++, class, protocol, mynodeid, bsid,
serial, volsize);
"HOSTID=localhost VOLNAME=%s UUID=%s UUID_TYPE=serial "
"VOLSIZE=%d\n",
cmdidx++, class, protocol, bsid, serial, volsize);
client_writeback(sock, buf, strlen(buf), tcp);
mysql_free_result(res2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment