mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2026-01-07 11:30:49 -06:00
core: various protocol changes
This commit is contained in:
committed by
GitHub Enterprise
parent
7aac745457
commit
2cd15fc0be
@@ -12,7 +12,6 @@
|
||||
#include <utility>
|
||||
|
||||
#include "Assert.hpp"
|
||||
#include "Msgs.hpp"
|
||||
#include "MsgsGen.hpp"
|
||||
#include "RocksDBUtils.hpp"
|
||||
#include "Time.hpp"
|
||||
@@ -204,7 +203,7 @@ EggsError SharedRocksDB::snapshot(const std::string& path) {
|
||||
std::error_code ec;
|
||||
if (fs::is_directory(path, ec)) {
|
||||
LOG_INFO(_env, "Snapshot exists in %s", path);
|
||||
return NO_ERROR;
|
||||
return EggsError::NO_ERROR;
|
||||
}
|
||||
if (fs::exists(path, ec)) {
|
||||
LOG_ERROR(_env, "Provided path exists and is not an existing snapshot %s", path);
|
||||
@@ -251,5 +250,5 @@ EggsError SharedRocksDB::snapshot(const std::string& path) {
|
||||
fs::remove_all(tmpPath, ec);
|
||||
return EggsError::CANNOT_CREATE_DB_SNAPSHOT;
|
||||
}
|
||||
return NO_ERROR;
|
||||
return EggsError::NO_ERROR;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user