Fixed gcc build
This commit is contained in:
1 parent
da2ef511ef
commit
46d6bcead5
1 file changed
+9
-5
@@ -47,7 +47,7 @@ struct PersistenceServiceServer::NSRecord {
|
||||
|
||||
struct PersistenceServiceServer::PImpl
|
||||
{
|
||||
PImpl(std::string const &db) : db(db),store (db) {}
|
||||
PImpl(std::string const &db) : db(db),store (db),data() {}
|
||||
|
||||
std::string const db;
|
||||
SqliteStore store;
|
||||
@@ -127,7 +127,8 @@ void PersistenceServiceServer::retrieve(const RetrieveRequest& request,
|
||||
LOG(Persistence,Diag, "Successfully retrieved {} rows from {}/{}", request.key().size(), me->db,request.ns());
|
||||
}
|
||||
|
||||
void PersistenceServiceServer::retrieve_all(const RetrieveAllRequest& request, std::function<void(const RetrieveResponse&)> reply)
|
||||
void PersistenceServiceServer::retrieve_all(const RetrieveAllRequest& request,
|
||||
std::function<void(const RetrieveResponse&)> reply)
|
||||
{
|
||||
LOG(Persistence,Diag, "Retrieving all rows from {}/{}", me->db,request.ns());
|
||||
RetrieveResponse response;
|
||||
@@ -183,7 +184,8 @@ void PersistenceServiceServer::remove(const RemoveRequest& request, std::functio
|
||||
for (auto &k : request.key()) {
|
||||
|
||||
if (keys.count(k)) {
|
||||
LOG(Persistence,Error, "Client used duplicate key {} while trying to remove rows in {}/{}", k,me->db,request.ns());
|
||||
LOG(Persistence,Error, "Client used duplicate key {} while trying to remove rows in {}/{}",
|
||||
k,me->db,request.ns());
|
||||
response.set_result ( RemoveResponse::DUPLICATE_KEY);
|
||||
reply(response);
|
||||
return;
|
||||
@@ -214,7 +216,8 @@ void PersistenceServiceServer::remove(const RemoveRequest& request, std::functio
|
||||
LOG(Persistence,Diag, "Successfully removed {} rows from {}/{}", keys.size(),me->db,request.ns());
|
||||
}
|
||||
|
||||
void PersistenceServiceServer::remove_all(const RemoveAllRequest& request, std::function<void(const RemoveResponse&)> reply)
|
||||
void PersistenceServiceServer::remove_all(const RemoveAllRequest& request,
|
||||
std::function<void(const RemoveResponse&)> reply)
|
||||
{
|
||||
LOG(Persistence,Diag, "Removing all rows from {}/{}", me->db,request.ns());
|
||||
|
||||
@@ -276,7 +279,8 @@ void PersistenceServiceServer::store(const StoreRequest& request, std::function<
|
||||
|
||||
auto const &k = r.key();
|
||||
if (keys.count(k)) {
|
||||
LOG(Persistence,Error, "Client used duplicate key {} while trying to store rows in {}/{}", k,me->db,request.ns());
|
||||
LOG(Persistence,Error, "Client used duplicate key {} while trying to store rows in {}/{}",
|
||||
k,me->db,request.ns());
|
||||
response.set_result ( StoreResponse::DUPLICATE_KEY);
|
||||
reply(response);
|
||||
return;
|
||||
|
||||
Reference in new issue
Block a user