summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_engine.h
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2022-01-18 20:08:26 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-01-27 05:00:22 +0000
commit6b39ba07422b7d8620c6a938c372ae4e2c2fbe5f (patch)
tree9e5c952431e28e23d5c4e0c77fadcb6eb023ac17 /src/mongo/db/storage/storage_engine.h
parent5b6ea8f5673efd2062c0caf6bc4e7dbcd39d159e (diff)
downloadmongo-6b39ba07422b7d8620c6a938c372ae4e2c2fbe5f.tar.gz
SERVER-62426 Backup cursor indicates which files are required to copy for selective backups
Diffstat (limited to 'src/mongo/db/storage/storage_engine.h')
-rw-r--r--src/mongo/db/storage/storage_engine.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/src/mongo/db/storage/storage_engine.h b/src/mongo/db/storage/storage_engine.h
index 2160a430aa0..064508add80 100644
--- a/src/mongo/db/storage/storage_engine.h
+++ b/src/mongo/db/storage/storage_engine.h
@@ -44,6 +44,7 @@
namespace mongo {
+class BackupBlock;
class JournalListener;
class DurableCatalog;
class KVEngine;
@@ -312,25 +313,6 @@ public:
};
/**
- * Represents the file blocks returned by the storage engine during both full and incremental
- * backups. In the case of a full backup, each block is an entire file with offset=0 and
- * length=fileSize. In the case of the first basis for future incremental backups, each block is
- * an entire file with offset=0 and length=0. In the case of a subsequent incremental backup,
- * each block reflects changes made to data files since the basis (named 'thisBackupName') and
- * each block has a maximum size of 'blockSizeMB'.
- *
- * If a file is unchanged in a subsequent incremental backup, a single block is returned with
- * offset=0 and length=0. This allows consumers of the backup API to safely truncate files that
- * are not returned by the backup cursor.
- */
- struct BackupBlock {
- std::string filename;
- std::uint64_t offset = 0;
- std::uint64_t length = 0;
- std::uint64_t fileSize = 0;
- };
-
- /**
* Abstract class required for streaming both full and incremental backups. The function
* getNextBatch() returns a vector containing 'batchSize' or less BackupBlocks. The
* StreamingCursor has been exhausted if getNextBatch() returns an empty vector.