mirror of https://gitee.com/bigwinds/arangodb
fix reading of initial tick values from RocksDB
This commit is contained in:
parent
12df8249b3
commit
502d3ee354
|
@ -229,10 +229,8 @@ void RocksDBCounterManager::readSettings() {
|
||||||
|
|
||||||
if (!result.empty()) {
|
if (!result.empty()) {
|
||||||
try {
|
try {
|
||||||
std::shared_ptr<VPackBuilder> builder = VPackParser::fromJson(result);
|
uint64_t lastTick = basics::VelocyPackHelper::stringUInt64(slice.get("tick"));
|
||||||
VPackSlice s = builder->slice();
|
LOG_TOPIC(TRACE, Logger::ENGINES) << "using last tick: " << lastTick;
|
||||||
|
|
||||||
uint64_t lastTick = basics::VelocyPackHelper::stringUInt64(s.get("tick"));
|
|
||||||
TRI_UpdateTickServer(lastTick);
|
TRI_UpdateTickServer(lastTick);
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
LOG_TOPIC(WARN, Logger::ENGINES) << "unable to read initial settings: invalid data";
|
LOG_TOPIC(WARN, Logger::ENGINES) << "unable to read initial settings: invalid data";
|
||||||
|
|
Loading…
Reference in New Issue