Skip to content

Commit f8362ac

Browse files
committed
Typing is a bitch
1 parent 702e823 commit f8362ac

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

MongoLog.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ int MongoLog::Entry(int priority, std::string message, ...){
118118
"priority" << priority <<
119119
"runid" << fRunId <<
120120
bsoncxx::builder::stream::finalize;
121-
fCollection->insert_one(std::move(d));
121+
fCollection.insert_one(std::move(d));
122122
}
123123
catch(const std::exception &e){
124124
std::cout<<"Failed to insert log message "<<message<<" ("<<

MongoLog.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ private:
8080
int RotateLogFile();
8181
std::string LogFileName(struct tm* date);
8282
std::shared_ptr<mongocxx::pool> fPool;
83-
mongocxx::client fClient;
83+
mongocxx::pool::entry fClient;
8484
mongocxx::database fDB;
8585
mongocxx::collection fCollection;
8686
std::vector<std::string> fPriorities{"LOCAL", "DEBUG", "MESSAGE",

Options.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
Options::Options(std::shared_ptr<MongoLog>& log, std::string options_name, std::string hostname,
1414
mongocxx::collection* opts_collection, std::shared_ptr<mongocxx::pool>& pool,
1515
std::string override_opts, std::string dbname) :
16-
fLog(log), fHostname(hostname), {
16+
fLog(log), fHostname(hostname) {
1717
bson_value = NULL;
1818
if(Load(options_name, opts_collection, override_opts)!=0)
1919
throw std::runtime_error("Can't initialize options class");

Options.hh

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private:
100100
std::string fHostname;
101101
std::string fDetector;
102102
std::shared_ptr<mongocxx::pool> fPool;
103-
mongocxx::client fClient;
103+
mongocxx::pool::entry fClient; // yes
104104
mongocxx::database fDB;
105105
mongocxx::collection fDAC_collection;
106106
};

StraxFormatter.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ StraxFormatter::~StraxFormatter(){
7979
{"data_packets", fBufferCounter},
8080
{"chunks", fBytesPerChunk}
8181
};
82-
fOptions->SaveBenchmarks(counters, fBytesProcessed, ss.str(), times);
82+
//fOptions->SaveBenchmarks(counters, fBytesProcessed, ss.str(), times);
8383
}
8484

8585
void StraxFormatter::Close(std::map<int,int>& ret){

0 commit comments

Comments
 (0)