Add Xmon support to C++ code

This commit is contained in:
Francesco Mazzoli
2023-07-11 12:02:17 +00:00
parent a44d8d4473
commit ff9306f6e3
21 changed files with 666 additions and 84 deletions
+4 -2
View File
@@ -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() {