Skip to content
Permalink
Browse files

A few const-related tweaks.

Change-Id: I538d268dc3287389a68e57f1576ebb643766d5c4
  • Loading branch information...
svenpanne committed May 14, 2019
1 parent de4d8f0 commit a5375a91b1f053e7283062bd67b560f7fca893ac
@@ -48,7 +48,7 @@ class ECTableConnection : public EventConsoleConnection {
void sendRequest(std::ostream &os) override { os << command_; }
void receiveReply(std::istream &is) override { std::getline(is, result_); }

const std::string command_;
std::string command_;
std::string result_;
};

@@ -67,7 +67,7 @@ class ReplicationColumn : public BlobColumn {
};

private:
const std::string blob_;
std::string blob_;
};
} // namespace

@@ -32,9 +32,9 @@
#include "Poller.h"

namespace {
const size_t initial_buffer_size = 4096;
constexpr size_t initial_buffer_size = 4096;
// TODO(sp): Make this configurable?
const size_t maximum_buffer_size = 500 * 1024 * 1024;
constexpr size_t maximum_buffer_size = 500 * 1024 * 1024;

bool timeout_reached(const std::chrono::system_clock::time_point &start,
const std::chrono::milliseconds &timeout) {
@@ -442,7 +442,7 @@ void Query::parseStatsGroupLine(char *line) {

void Query::parseColumnsLine(char *line) {
std::string str = line;
const std::string sep = " \t\n\v\f\r";
std::string sep = " \t\n\v\f\r";
for (auto pos = str.find_first_not_of(sep); pos != std::string::npos;) {
auto space = str.find_first_of(sep, pos);
auto column_name =
@@ -645,7 +645,7 @@ void TableStateHistory::answerQuery(Query *query) {
int TableStateHistory::updateHostServiceState(Query *query,
const LogEntry *entry,
HostServiceState *hs_state,
const bool only_update) {
bool only_update) {
int state_changed = 1;

// Revive host / service if it was unmonitored

0 comments on commit a5375a9

Please sign in to comment.
You can’t perform that action at this time.