Add simplified interface to read blockstore bitmaps synchronously

This commit is contained in:
Vitaliy Filippov
2021-04-10 17:44:12 +03:00
parent 2c2f08aca2
commit f01eea07d3
4 changed files with 58 additions and 0 deletions
+3
View File
@@ -324,6 +324,9 @@ public:
// Submission
void enqueue_op(blockstore_op_t *op);
// Simplified synchronous operation: get object bitmap & current version
int read_bitmap(object_id oid, uint64_t target_version, void *bitmap, uint64_t *result_version = NULL);
// Unstable writes are added here (map of object_id -> version)
std::unordered_map<object_id, uint64_t> unstable_writes;