return id for "addid" with position
Previously the id was being returned only when a position wasn't specified.
This commit is contained in:
parent
2ee43c403c
commit
81a198a76a
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user