Implement Shard SQLite support

This commit is contained in:
Miguel Portilla
2019-07-19 18:29:27 -04:00
committed by Nik Bougalis
parent 008fc5155a
commit 66fad62e66
27 changed files with 1217 additions and 986 deletions

View File

@@ -254,7 +254,7 @@ SHAMapStoreImp::makeNodeStore(std::string const& name, std::int32_t readThreads)
std::move(archiveBackend),
app_.config().section(ConfigSection::nodeDatabase()),
app_.logs().journal(nodeStoreName_));
fdlimit_ += dbr->fdlimit();
fdRequired_ += dbr->fdRequired();
dbRotating_ = dbr.get();
db.reset(dynamic_cast<NodeStore::Database*>(dbr.release()));
}
@@ -267,7 +267,7 @@ SHAMapStoreImp::makeNodeStore(std::string const& name, std::int32_t readThreads)
app_.getJobQueue(),
app_.config().section(ConfigSection::nodeDatabase()),
app_.logs().journal(nodeStoreName_));
fdlimit_ += db->fdlimit();
fdRequired_ += db->fdRequired();
}
return db;
}
@@ -298,9 +298,9 @@ SHAMapStoreImp::rendezvous() const
}
int
SHAMapStoreImp::fdlimit () const
SHAMapStoreImp::fdRequired() const
{
return fdlimit_;
return fdRequired_;
}
bool