Move simple-offsets into vitastor-disk, too

This commit is contained in:
Vitaliy Filippov
2022-07-15 02:19:35 +03:00
parent 85fa389557
commit dcc6d546be
18 changed files with 123 additions and 116 deletions
+1 -15
View File
@@ -14,6 +14,7 @@
#include <stdexcept>
#include "addr_util.h"
#include "base64.h"
#include "json11/json11.hpp"
#include "http_client.h"
#include "timerfd_manager.h"
@@ -603,21 +604,6 @@ void http_co_t::next_request()
}
}
uint64_t stoull_full(const std::string & str, int base)
{
if (isspace(str[0]))
{
return 0;
}
char *end = NULL;
uint64_t r = strtoull(str.c_str(), &end, base);
if (end != str.c_str()+str.length())
{
return 0;
}
return r;
}
static void parse_http_headers(std::string & res, http_response_t *parsed)
{
int pos = res.find("\r\n");