From 847506a999d5b3f07b429a5d57296b386374dfb5 Mon Sep 17 00:00:00 2001 From: Marco De Marco <demarco@oats.inaf.it> Date: Wed, 11 Dec 2013 10:59:38 +0100 Subject: [PATCH] Skip storage path and file path in metadata export --- proto/Response.proto | 5 ----- src/ProtocolManager.cpp | 8 ++++++++ 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/proto/Response.proto b/proto/Response.proto index b973c1c..d704520 100644 --- a/proto/Response.proto +++ b/proto/Response.proto @@ -49,8 +49,6 @@ message Response message Metadata { - //Metadata response state - enum State { ACCEPTED = 0; @@ -58,9 +56,6 @@ message Response } required State state = 1; - - //Metadata response status - required string status = 2; //Block of rows with same timestamp diff --git a/src/ProtocolManager.cpp b/src/ProtocolManager.cpp index 7974b33..c70dcab 100644 --- a/src/ProtocolManager.cpp +++ b/src/ProtocolManager.cpp @@ -447,6 +447,14 @@ void ProtocolManager::fillRow(Response::Metadata::Row* row) std::string name = props.get_name(); + if(name.compare("storage_path")==0 || name.compare("file_path")==0) + { + #ifdef VERBOSE_DEBUG + INFO_STREAM << "ProtocolManager::fillRow() skipping " << name << endl; + #endif + continue; + } + if(m_it->get_indicator(i) == soci::i_null) { #ifdef VERBOSE_DEBUG -- GitLab