Partition: add "name" attribute

This commit is contained in:
Max Kellermann
2017-02-17 23:18:51 +01:00
parent 7dc3e73782
commit c335f18be7
4 changed files with 12 additions and 2 deletions

View File

@@ -20,11 +20,13 @@
#include "config.h"
#include "PartitionCommands.hxx"
#include "Request.hxx"
#include "Partition.hxx"
#include "client/Client.hxx"
#include "client/Response.hxx"
CommandResult
handle_listpartitions(Client &, Request, Response &r)
handle_listpartitions(Client &client, Request, Response &r)
{
r.Write("partition: default\n");
r.Format("partition: %s\n", client.partition.name.c_str());
return CommandResult::OK;
}