You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-01 06:46:55 +03:00
Revert blind config read patch
This commit is contained in:
@ -26,9 +26,9 @@
|
||||
#include <boost/uuid/uuid.hpp>
|
||||
#include <boost/uuid/uuid_io.hpp>
|
||||
#include <boost/uuid/random_generator.hpp>
|
||||
|
||||
#include "utils/json/json.hpp"
|
||||
|
||||
#define BOOST_SPIRIT_THREADSAFE
|
||||
#include <boost/property_tree/ptree.hpp>
|
||||
#include <boost/property_tree/json_parser.hpp>
|
||||
#include "Utilities.h"
|
||||
|
||||
using namespace std;
|
||||
@ -258,12 +258,12 @@ bool S3Storage::getCredentialsFromMetadataEC2()
|
||||
logger->log(LOG_ERR, "CURL fail %u", curl_res);
|
||||
return false;
|
||||
}
|
||||
|
||||
nlohmann::json pt = nlohmann::json::parse(readBuffer);
|
||||
key = pt["AccessKeyId"];
|
||||
secret = pt["SecretAccessKey"];
|
||||
token = pt["Token"];
|
||||
|
||||
stringstream credentials(readBuffer);
|
||||
boost::property_tree::ptree pt;
|
||||
boost::property_tree::read_json(credentials, pt);
|
||||
key = pt.get<string>("AccessKeyId");
|
||||
secret = pt.get<string>("SecretAccessKey");
|
||||
token = pt.get<string>("Token");
|
||||
// logger->log(LOG_INFO, "S3Storage: key = %s secret = %s token =
|
||||
// %s",key.c_str(),secret.c_str(),token.c_str());
|
||||
|
||||
|
Reference in New Issue
Block a user