return id for "addid" with position

Previously the id was being returned only when a position wasn't
specified.
This commit is contained in:
Eric Wollesen 2016-06-13 09:56:02 -06:00 committed by Eric Wollesen
parent 2ee43c403c
commit 81a198a76a

View File

@ -122,6 +122,7 @@ handle_addid(Client &client, Request args, Response &r)
try {
client.partition.MoveId(added_id, to);
r.Format("Id: %u\n", added_id);
return CommandResult::OK;
} catch (...) {
/* rollback */