refactored

This commit is contained in:
2024-05-01 04:12:05 +00:00
parent 6c20530cc8
commit ec920f7255
37 changed files with 79 additions and 57 deletions

View File

@ -0,0 +1,2 @@
#include "dataguard/snapshot.h"
#include "dataguard/txn_logger.h"

View File

@ -0,0 +1,15 @@
#ifndef SNAP_SHOT_H
#define SNAP_SHOT_H
#include <string>
#include "map.hpp"
#include "vector.hpp"
class SnapShotManager {
public:
// For safety and simplicity, we delete all the copy/move constructor and copy/move assignment operator. Please
// manager it using smart pointer.
SnapShotManager(const SnapShotManager &) = delete;
SnapShotManager(SnapShotManager &&) = delete;
SnapShotManager &operator=(const SnapShotManager &) = delete;
SnapShotManager &operator=(SnapShotManager &&) = delete;
};
#endif // SNAP_SHOT_H

View File

@ -0,0 +1,4 @@
#ifndef TXN_LOGGER_H
#define TXN_LOGGER_H
#endif