You need to sign in or sign up before continuing.
Commit 81a198a7 authored by Eric Wollesen's avatar Eric Wollesen Committed by Eric Wollesen

return id for "addid" with position

Previously the id was being returned only when a position wasn't specified.
parent 2ee43c40
...@@ -122,6 +122,7 @@ handle_addid(Client &client, Request args, Response &r) ...@@ -122,6 +122,7 @@ handle_addid(Client &client, Request args, Response &r)
try { try {
client.partition.MoveId(added_id, to); client.partition.MoveId(added_id, to);
r.Format("Id: %u\n", added_id);
return CommandResult::OK; return CommandResult::OK;
} catch (...) { } catch (...) {
/* rollback */ /* rollback */
......
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