Commit 5d2bfdd2 authored by Marco De Marco's avatar Marco De Marco
Browse files

Rowset not cleaned after empty fix

parent c2ba2ed8
Loading
Loading
Loading
Loading
+3 −1
Original line number Original line Diff line number Diff line
@@ -253,7 +253,7 @@ ResponseSP ProtocolManager::prepareMetadata(RequestSP request_sp)
                boost::posix_time::ptime ptTimestamp =
                boost::posix_time::ptime ptTimestamp =
                    boost::posix_time::ptime_from_tm(tmTimestamp);
                    boost::posix_time::ptime_from_tm(tmTimestamp);


                DEBUG_STREAM << "ProtocolManager::prepareMetadata() Searching in "
                INFO_STREAM << "ProtocolManager::prepareMetadata() Searching in "
                    << m_validatedSchema << "." << m_validatedTable << " timestamp "
                    << m_validatedSchema << "." << m_validatedTable << " timestamp "
                    << boost::posix_time::to_simple_string(ptTimestamp)
                    << boost::posix_time::to_simple_string(ptTimestamp)
                    << " from " << m_remoteEndpoint << endl;
                    << " from " << m_remoteEndpoint << endl;
@@ -277,6 +277,8 @@ ResponseSP ProtocolManager::prepareMetadata(RequestSP request_sp)
                {
                {
                    metadataRes->set_state(Response::Metadata::ACCEPTED);
                    metadataRes->set_state(Response::Metadata::ACCEPTED);
                    metadataRes->set_status("No more data");
                    metadataRes->set_status("No more data");

                    m_rowSet_sp.reset();
                }
                }
            }
            }
            catch(std::exception& ex)
            catch(std::exception& ex)