mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2026-05-04 08:49:29 -05:00
Add Xmon support to C++ code
This commit is contained in:
+4
-2
@@ -392,13 +392,15 @@ struct TempShardDB {
|
||||
if (mkdtemp(dbDir.data()) == nullptr) {
|
||||
throw SYSCALL_EXCEPTION("mkdtemp");
|
||||
}
|
||||
db = std::make_unique<ShardDB>(logger, shid, dbDir);
|
||||
std::shared_ptr<XmonAgent> xmon;
|
||||
db = std::make_unique<ShardDB>(logger, xmon, shid, dbDir);
|
||||
}
|
||||
|
||||
// useful to test recovery
|
||||
void restart() {
|
||||
db->close();
|
||||
db = std::make_unique<ShardDB>(logger, shid, dbDir);
|
||||
std::shared_ptr<XmonAgent> xmon;
|
||||
db = std::make_unique<ShardDB>(logger, xmon, shid, dbDir);
|
||||
}
|
||||
|
||||
~TempShardDB() {
|
||||
|
||||
Reference in New Issue
Block a user